GetDataBuffer

Get a pointer to the data area of an IOStreamBuffer.

Declaration

void *( *GetDataBuffer)(
   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

A pointer to the data buffer area of the IOStreamBuffer, or NULL if it does not have a 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.

GetDataBufferLength

Get the length of the data area of an IOStreamBuffer.