void Bitstream::writeBit(int bit) { bs_raw* byte = getCurrentByte(); int offset = getBitOffset(); *byte |= (bit<<offset); m_position++; }
bool readChar(char c) { readWs(); if (getCurrentByte() == c) { incPos(); return (true); } return (false); }
bool peekChar(char c) { readWs(); return (getCurrentByte() == c); }