BufferedInput.skip

Move the current read location.

class BufferedInput
final
bool
skip

Parameters

size ptrdiff_t

The number of bytes to move.

Return Value

Type: bool

Returns true if successful, false otherwise.

Remarks: Skip ahead by the specified number of bytes, streaming from the associated conduit as necessary.

Can also reverse the read position by 'size' bytes, when size is negative. This may be used to support lookahead operations. Note that a negative size will fail where there is not sufficient content available in the buffer (can't skip beyond the beginning).

Meta