BitWriter Class Reference

Stream bit-writer - automated buffer for writing single bits. More...

#include <fileUtil.h>

List of all members.

Public Member Functions

 BitWriter (std::ostream &stream)
 Constructor just associates the object with the given stream.
 ~BitWriter ()
 Destructor only flushes the buffer.
void putBits (int val, int bits)
 Puts bits.
void flush ()
 Flushes the buffer - sends it to the stream.

Private Attributes

int buffer
 Buffered bits, number of buffered bits.
std::ostream & os
 Used output (byte)stream.


Detailed Description

Stream bit-writer - automated buffer for writing single bits.

Definition at line 65 of file fileUtil.h.


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

Generated on Thu Aug 6 22:33:14 2009 for Fractal Image Compressor by  doxygen 1.5.8