16#ifndef CXXUTILS_BITPACKER_H
17#define CXXUTILS_BITPACKER_H
37template <
class STREAM>
89template <
class STREAM>
145template <
class STREAM>
~BitPacker16()
Destructor.
uint8_t m_nbuf
Number of valid words currently buffered.
BitPacker16(uint8_t nbits, STREAM &stream)
Constructor.
BitPacker16(STREAM &stream)
Constructor.
uint32_t m_buf
Buffer for the current words being packed.
STREAM & m_stream
The output stream.
void pack(uint32_t x)
Pack one value to the stream.
STREAM & m_stream
The output stream.
BitPacker8(uint8_t nbits, STREAM &stream)
Constructor.
uint32_t m_buf
Buffer for the current words being packed.
void pack(uint32_t x)
Pack one value to the stream.
uint8_t m_nbuf
Number of valid bits currently buffered.
BitPacker8(STREAM &stream)
Constructor.
uint8_t m_nbuf
Number of valid bits currently buffered.
uint32_t m_buf
Buffer for the current words being packed.
BitPacker(uint8_t nbits, STREAM &stream)
Constructor.
uint8_t m_nbits
Number of bits to use for each item.
void pack(uint32_t x)
Pack one value to the stream.
STREAM & m_stream
The output stream.