Home

Traffic Server Software Developers Kit

INKIOBufferReaderConsume

Consumes an IO buffer reader.

Prototype

INKReturnCode INKIOBufferReaderConsume (INKIOBufferReader readerp, int nbytes)

Description

Moves the read offset for the IO buffer reader readerp ahead by the amount nbytes.

[Caution] Caution

Once a reader moves its offset ahead, it can never move it back. When a reader moves its offset, the data it has moved is potentially freed at that moment.

Returns

INK_SUCCESS if the operation completes successfully.

INK_ERROR if an error occurs.