Reads bit-packed data from a ksStreamBuffer that was written using a ksBitWriter.
More...
Reads bit-packed data from a ksStreamBuffer that was written using a ksBitWriter.
◆ ksBitReader()
Constructor
- Parameters
-
| buffer | Buffer to read from. |
◆ Align()
| void KS.Reactor.ksBitReader.Align |
( |
| ) |
|
Advances the position to the next byte if the position is not at a byte boundary.
◆ ReadBits()
| uint KS.Reactor.ksBitReader.ReadBits |
( |
int |
bits | ) |
|
Reads up to 32 bits from the buffer.
- Parameters
-
| bits | Number of bits to read. |
- Returns
- Value
◆ ReadBits64()
| ulong KS.Reactor.ksBitReader.ReadBits64 |
( |
int |
bits | ) |
|
Reads up to 64 bits from the buffer.
- Parameters
-
| bits | Number of bits to read. |
- Returns
- Value
◆ ReadBool()
| bool KS.Reactor.ksBitReader.ReadBool |
( |
| ) |
|
Reads 1 bit from the buffer.
- Returns
- True if the bit was 1.