Home

Traffic Server Software Developers Kit

INKIOBufferBlockReadAvail

Indicates the number of IO buffer bytes available for reading.

Prototype

int INKIOBufferBlockReadAvail (INKIOBufferBlock blockp, INKIOBufferReader readerp)

Description

Obtains the number of bytes available for reading in the IO buffer block blockp. The readerp parameter is needed because each IO buffer reader maintains its own current offset.

Returns

The number of bytes available for reading in the IO buffer block.

INK_ERROR if an error occurs.