Creates a new binary reader for the given data.
The data array to read from.
Optional start offset. Defaults to 0.
Optional maximum number of bytes to read from data array. Defaults to size of data array.
Returns the current bit index.
The current bit index.
Returns the current byte index.
The current byte index.
Checks if there is more data to read. If this method returns false then there is no more data and the next read operation results in an errors.
True if there is still data to read, false if not.
Reads a single bit and returns it.
The read bit.
Reads a single character and returns it.
The read character.
Reads a string with the given length and returns it.
The read string.
Reads an unsigned 16 bit value and returns it.
The read value.
Reads an unsigned 32 bit value and returns it.
The read value.
Reads an unsigned 8 bit value (byte) and returns it.
The read value.
Reads the specified number of unsigned 8 bit values and returns it.
The number of bytes to read.
The read bytes.
Synchronizes the reader so it points to a full byte if it currently doesn't.
Generated using TypeDoc
Reader for binary data. Supports reading single bits, bytes, characters and strings and more.