Reader.peekByte
char peekByte(const size_t index) @safe pure nothrow @nogcGet byte at specified index relative to current position.
Parameters
index | Index 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 @nogcOptimized version of peekByte() for the case where peek byte index is 0.