GetBufferInfo

Gets information about a buffer in an IOStream.

Declaration

IOReturn ( *GetBufferInfo)(
   IOStreamRef stream,
   IOStreamBufferID bufferID,
   void **dataBufferAddressOut,
   IOByteCount *dataBufferSizeOut,
   void **controlBufferAddressOut,
   IOByteCount *controlBufferSizeOut );

Parameters

stream

The IOStreamRef of the stream to operate on.

bufferID
dataBufferAddressOut
dataBufferSizeOut
controlBufferAddressOut
controlBufferSizeOut

Return Value

Returns kIOReturnSuccess if the buffer ID was valid.

See Also

Buffer information

GetBufferCount

Gets the number of buffers in the stream.