Reader.slice

char[] slice(const size_t end) @safe pure

Get a slice view of the internal buffer, starting at the current position.

Note

This gets only a "view" into the internal buffer,

which get invalidated after other Reader calls.

Parameters

endEnd of the slice relative to current position. May reach past the end of the buffer; in that case the returned slice will be shorter.

Returns

Slice into the internal buffer or an empty slice if out of bounds.