Reader.prefixBytes

char[] prefixBytes(const size_t length) @safe pure nothrow @nogc

Get specified number of bytes, not code points, starting at current position.

Note

This gets only a "view" into the internal buffer, which will be

invalidated after other Reader calls.

Parameters

lengthNumber bytes (not code points) to get. May NOT reach past the end of the buffer; should be used with peek() to avoid this.

Returns

Bytes starting at current position.