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