Class BitReader


public class BitReader
  • Field Details

  • Constructor Details

    • BitReader

      public BitReader(byte... data)
    • BitReader

      public BitReader(byte[] data, int startByte)
    • BitReader

      public BitReader(ByteBuffer data, int startByte, int skipBits)
  • Method Details

    • get

      public int get(int bits)
    • getNextBit

      public int getNextBit()
    • getBoolean

      public boolean getBoolean()
    • getPosition

      public int getPosition()
      Returns the number of bits read since the start position.
      Returns:
      bits consumed since construction (or last reset)
    • skip

      public void skip(int bits)
      Skips the specified number of bits without returning them.
      Parameters:
      bits - number of bits to skip
    • setPosition

      public void setPosition(int position)
    • remaining

      public int remaining()
    • reset

      public void reset()