Utility for packing arbitrary bits into a byte stream. More...
Public Member Functions | |
| void | push (uint16_t valor, int nbits, std::vector< uint8_t > &out) |
| void | flush (std::vector< uint8_t > &out) |
Public Attributes | |
| uint64_t | buffer = 0 |
| Temporary accumulator of up to 64 bits. | |
| int | bits_usados = 0 |
| Counter of valid bits in the buffer. | |
Utility for packing arbitrary bits into a byte stream.
Allows data compression when compressedBytes > 0.