Claw  1.7.3
Public Member Functions | List of all members
claw::bit_istream< Stream > Class Template Reference

This class is made to help reading datas of custom bit length. More...

#include <bit_istream.hpp>

Public Member Functions

 bit_istream (stream_type &f)
 Constructor.
void read (char *buf, unsigned int n)
 Read some bits.
 operator bool () const
 Tell if the input stream is still valid.

Detailed Description

template<typename Stream>
class claw::bit_istream< Stream >

This class is made to help reading datas of custom bit length.

Author
Julien Jorge

Definition at line 40 of file bit_istream.hpp.

Constructor & Destructor Documentation

template<typename Stream >
claw::bit_istream< Stream >::bit_istream ( stream_type &  f)

Constructor.

Parameters
fThe stream in which we read.

Definition at line 38 of file bit_istream.tpp.

Member Function Documentation

template<typename Stream >
void claw::bit_istream< Stream >::read ( char *  buf,
unsigned int  n 
)

Read some bits.

Parameters
bufA buffer in which we write the bits.
nThe number of bits to read.

Definition at line 51 of file bit_istream.tpp.


The documentation for this class was generated from the following files: