CxxUtils::BitUnpacker8< STREAM > Class Template Reference

Helper to unpack a set of values bitwise from a stream. More...

#include <BitUnpacker.h>

List of all members.

Public Member Functions

 BitUnpacker8 (STREAM &stream)
 Constructor.
 BitUnpacker8 (uint8_t nbits, STREAM &stream)
 Constructor.
uint32_t unpack ()
 Unpack one value from the stream.

Detailed Description

template<class STREAM>
class CxxUtils::BitUnpacker8< 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 8-bit values.

STREAM should support input (operator>>) with uint32_t (satisfied by a ROOT TBuffer).


Constructor & Destructor Documentation

template<class STREAM >
CxxUtils::BitUnpacker8< STREAM >::BitUnpacker8 ( STREAM &  stream  )  [inline]

Constructor.

Parameters:
stream Input stream object.
template<class STREAM >
CxxUtils::BitUnpacker8< STREAM >::BitUnpacker8 ( uint8_t  nbits,
STREAM &  stream 
) [inline]

Constructor.

Parameters:
nbits Must be 8.
stream Input stream object.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1