CxxUtils::BitUnpacker16< 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

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

Detailed Description

template<class STREAM>
class CxxUtils::BitUnpacker16< 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).


Constructor & Destructor Documentation

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

Constructor.

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

Constructor.

Parameters:
nbits Must be 16.
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 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1