MODBUS MASTER MONITOR 1.0
Loading...
Searching...
No Matches
BitPacker Struct Reference

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.

Detailed Description

Utility for packing arbitrary bits into a byte stream.

Allows data compression when compressedBytes > 0.


The documentation for this struct was generated from the following file: