Buffer Information Structure
The buffer information structure is provided for your convenience in keeping track of where you last left off in anOTBufferstructure. 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 functionOTReadBufferis used with this structure to easily copy the data out of anOTBufferstructure.The buffer information structure is defined by the
OTBufferInfodata 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.