30 #ifndef __CLAW_BIT_OSTREAM_HPP__
31 #define __CLAW_BIT_OSTREAM_HPP__
39 template<
typename Stream>
44 typedef Stream stream_type;
50 void write(
const char* buf,
unsigned int n );
54 stream_type& m_stream;
57 unsigned char m_pending;
60 unsigned char m_pending_length;
67 #endif // __CLAW_BIT_OSTREAM_HPP__
bit_ostream(stream_type &f)
Constructor.
This class is made to help writing datas of custom bit length.
~bit_ostream()
Destructor.
Implementation of the claw::bit_ostream class.
void write(const char *buf, unsigned int n)
Write some bits.