BitReader.readByte

int readByte() nothrow @safe

Read a byte, consuming any whole bytes staged in the bit buffer first.

Staged bytes may originate from a previous input buffer, so they must be emitted before fresh bytes are taken from the current one.

Returns

The byte value, or -1 if not available.