skip

fun Buffer.skip(kapacity: Kapacity)

Removes and discards the exact number of bytes represented by the given kapacity from this buffer.

Parameters

kapacity

The amount of data to skip.

Throws

EOFException

if the buffer is exhausted before the requested capacity is skipped.