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 / Constants and Data Types


Buffer Information Structure

The buffer information structure is provided for your convenience in keeping track of where you last left off in an OTBuffer structure. Because the no-copy receive buffer structure (OTBuffer) is read-only, you may need to copy the data in sections as you progress through the no-copy receive buffer. The utility function OTReadBuffer is used with this structure to easily copy the data out of an OTBuffer structure.

The buffer information structure is defined by the OTBufferInfo data type.

struct OTBufferInfo
{
   OTBuffer*fBuffer;
   size_t   fOffset;
   UInt8    fPad;
};

typedef struct OTBufferInfo OTBufferInfo;
Field Description
fBuffer
A pointer to the no-copy receive buffer.
fOffset
An offset indicating how far into the buffer you have read.
fPad
Reserved.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998