|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #ifndef CXXUTILS_BITPACKER_H
17 #define CXXUTILS_BITPACKER_H
37 template <
class STREAM>
89 template <
class STREAM>
145 template <
class STREAM>
199 #endif // not CXXUTILS_BITPACKER_H
STREAM & m_stream
The output stream.
uint32_t m_buf
Buffer for the current words being packed.
uint32_t m_buf
Buffer for the current words being packed.
void pack(uint32_t x)
Pack one value to the stream.
~BitPacker16()
Destructor.
BitPacker(uint8_t nbits, STREAM &stream)
Constructor.
BitPacker16(uint8_t nbits, STREAM &stream)
Constructor.
Pack a set of values bitwise into a stream.
BitPacker8(uint8_t nbits, STREAM &stream)
Constructor.
void pack(uint32_t x)
Pack one value to the stream.
STREAM & m_stream
The output stream.
BitPacker8(STREAM &stream)
Constructor.
uint8_t m_nbits
Number of bits to use for each item.
uint8_t m_nbuf
Number of valid bits currently buffered.
STREAM & m_stream
The output stream.
Pack a set of values bitwise into a stream.
Pack a set of values bitwise into a stream.
BitPacker16(STREAM &stream)
Constructor.
uint8_t m_nbuf
Number of valid words currently buffered.
uint8_t m_nbuf
Number of valid bits currently buffered.
void pack(uint32_t x)
Pack one value to the stream.
uint32_t m_buf
Buffer for the current words being packed.