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