Helper to unpack a set of values bitwise from a stream. More...
#include <BitUnpacker.h>
Public Member Functions | |
| BitUnpacker (uint8_t nbits, STREAM &stream) | |
| Constructor. | |
| uint32_t | unpack () |
| Unpack one value from the stream. | |
Helper to unpack a set of values bitwise from a stream.
This helper can be used to unpack a set of values from a stream and return them as a set of 32-bit words. The number of bits taken by each value is configurable.
STREAM should support input (operator>>) with uint32_t (satisfied by a ROOT TBuffer).
| CxxUtils::BitUnpacker< STREAM >::BitUnpacker | ( | uint8_t | nbits, | |
| STREAM & | stream | |||
| ) | [inline] |
Constructor.
| nbits | Number of bits per item to use in the packed representation. | |
| stream | Input stream object. |
1.6.1