Helper class for doing bitwise reads for a FastBufferReader. Ensures all bitwise reads end on proper byte alignment so FastBufferReader doesn't have to be concerned with misaligned reads.
Whether or not the current BitPosition is evenly divisible by 8. I.e. whether or not the BitPosition is at a byte boundary.
Pads the read bit count to byte alignment and commits the read back to the reader
Read a single bit from the buffer
|System.Boolean||bit||Out value of the bit. True represents 1, False represents 0|
Read bits from stream.
|System.Byte||value||Value to store bits into.|
|System.UInt32||bitCount||Amount of bits to read.|
Read a certain amount of bits from the stream.
|System.UInt64||value||Value to store bits into.|
|System.UInt32||bitCount||Amount of bits to read|
Verifies the requested bit count can be read from the buffer. This exists as a separate method to allow multiple bit reads to be bounds checked with a single call. If it returns false, you may not read, and in editor and development builds, attempting to do so will throw an exception. In release builds, attempting to do so will read junk memory.
|System.UInt32||bitCount||Number of bits you want to read, in total|
|System.Boolean||True if you can read, false if that would exceed buffer bounds|