Home

Traffic Server Software Developers Kit

INKIOBufferCopy

Copies an IO buffer.

Prototype

int INKIOBufferCopy (INKIOBuffer bufp, INKIOBufferReader readerp, int length, int offset)

Description

Copies length bytes of data from the IO buffer reader readerp to the IO buffer bufp. As previously described, INKIOBufferCopy does not actually copy the data - it simply copies pointers and adjusts reference counts appropriately. The parameter offset specifies the offset from readerp's current position to start copying from.

Returns

The number of bytes actually copied.

INK_ERROR if an error occurs.