Reader.peekByte

char peekByte(const size_t index) @safe pure nothrow @nogc

Get byte at specified index relative to current position.

Parameters

indexIndex of the byte to get relative to current position in the buffer. Can point outside of the buffer; In that case, '\0' will be returned.

Returns

Byte at specified position or '\0' if outside of the buffer.
char peekByte() @safe pure nothrow @nogc

Optimized version of peekByte() for the case where peek byte index is 0.