Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 28 - Advanced Topics Reference / Functions
/


OTBufferDataSize

Obtains the size of the no-copy receive buffer.

C INTERFACE
size_t OTBufferDataSize(OTBuffer* buf);
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
buf
A pointer to a no-copy receive buffer.
function result
The number of bytes in the no-copy receive buffer.
DISCUSSION
Use the OTReadBuffer function to copy from the buffer referenced by the buf parameter.

Use the OTReleaseBuffer function to return the no-copy receive buffer to the system..

SPECIAL CONSIDERATIONS
This function is available only to PowerPC-native clients; there is no mixed-mode glue for the function, so you must build a fat application in order to use it.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998