#include <fileUtil.h>
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. |
Definition at line 65 of file fileUtil.h.