GetDataBufferLength

Get the length of the data area of an IOStreamBuffer.

Declaration

IOByteCount ( *GetDataBufferLength)(
   IOStreamRef stream,
   IOStreamBufferID bufferID );

Parameters

stream

The IOStreamRef of the stream owning the buffer.

bufferID

The IOStreamBufferID of the buffer to operate on.

Return Value

The length in bytes of the data buffer, or 0 if there is no data buffer.

See Also

Buffer convenience functions

GetControlBuffer

Get a pointer to the control area of an IOStreamBuffer.

GetControlBufferLength

Get the length of the control area of an IOStreamBuffer.

GetDataBuffer

Get a pointer to the data area of an IOStreamBuffer.