Helper to unpack a set of values bitwise from a stream. More...
#include <BitUnpacker.h>
Public Member Functions | |
| BitUnpacker16 (STREAM &stream) | |
| Constructor. | |
| BitUnpacker16 (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. This is a special case for 16-bit values.
STREAM should support input (operator>>) with uint32_t (satisfied by a ROOT TBuffer).
| CxxUtils::BitUnpacker16< STREAM >::BitUnpacker16 | ( | STREAM & | stream | ) | [inline] |
Constructor.
| stream | Input stream object. |
| CxxUtils::BitUnpacker16< STREAM >::BitUnpacker16 | ( | uint8_t | nbits, | |
| STREAM & | stream | |||
| ) | [inline] |
Constructor.
| nbits | Must be 16. | |
| stream | Input stream object. |
1.6.1