Home

Traffic Server Software Developers Kit

INKIOBufferProduce

Makes a specified number of bytes of data available for reading.

Prototype

INKReturnCode INKIOBufferProduce (INKIObuffer bufp, int nbytes)

Description

Makes nbytes of data available for reading in the buffer bufp. A common paradigm for writing to a buffer is to copy data into a buffer block and then call INKIOBufferProduce to make the new data visible to readers.

Returns

INK_SUCCESS if the operation completes successfully.

INK_ERROR if an error occurs.