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

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

#include <bit_ostream.hpp>

Public Member Functions

 bit_ostream (stream_type &f)
 Constructor.
 ~bit_ostream ()
 Destructor.
void write (const char *buf, unsigned int n)
 Write some bits.

Detailed Description

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

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

Author
Julien Jorge

Definition at line 40 of file bit_ostream.hpp.

Constructor & Destructor Documentation

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

Constructor.

Parameters
fThe stream in which we write.

Definition at line 38 of file bit_ostream.tpp.

Member Function Documentation

template<typename Stream >
void claw::bit_ostream< Stream >::write ( const char *  buf,
unsigned int  n 
)

Write some bits.

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

Definition at line 62 of file bit_ostream.tpp.

Referenced by claw::bit_ostream< Stream >::~bit_ostream().


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