Important: The information in this document is obsolete and should not be used for new development.
Buffer Information Structure
The buffer information structure is provided for your convenience in keeping track of where you last left off in anOTBuffer
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 functionOTReadBuffer
is used with this structure to easily copy the data out of anOTBuffer
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.