62 #define MS_BIT (1 << (CHAR_BIT - 1))
66 #define BIT_IN_CHAR(bit) (1 << bit)
80 ByteIO(
bool new_stream=
true);
98 { dirac_byte_stats.
Clear(); }
103 virtual const std::string
GetBytes();
152 inline void SetBits(
unsigned char& c,
unsigned char bits)
const { c |= bits; }
240 for(
int i=0; i < byte_size; ++i)
260 for(
int index=0; index < count; ++index)
295 mp_stream->seekg(std::max(cur_pos,0), std::ios_base::beg);
327 for(
int i=length-1; i >=0 ; --i)
329 unsigned char cp = (value>>(i*8))&0xff;
341 inline void SeekGet(
const int offset, std::ios_base::seekdir dir)