Class BitReader

Object
com.wowza.util.BitReader
All Implemented Interfaces:
IBitReader

public class BitReader extends Object implements IBitReader
  • Constructor Details

    • BitReader

      public BitReader(byte[] bytes)
    • BitReader

      public BitReader(byte[] bytes, int len)
    • BitReader

      public BitReader(byte[] bytes, int offset, int len)
  • Method Details

    • remaining

      public int remaining()
      Specified by:
      remaining in interface IBitReader
    • count

      public int count()
    • getBit

      public int getBit()
    • skip

      public void skip()
    • skip

      public void skip(int numberBits)
      Specified by:
      skip in interface IBitReader
    • peekInt

      public int peekInt(int numberBits)
      Specified by:
      peekInt in interface IBitReader
    • peekIntLE

      public int peekIntLE(int numberBits)
      Specified by:
      peekIntLE in interface IBitReader
    • getInt

      public int getInt(int numberBits)
      Specified by:
      getInt in interface IBitReader
    • getIntLE

      public int getIntLE(int numberBits)
      Specified by:
      getIntLE in interface IBitReader
    • peekLong

      public long peekLong(int numberBits)
      Specified by:
      peekLong in interface IBitReader
    • getLong

      public long getLong(int numberBits)
      Specified by:
      getLong in interface IBitReader
    • getIntSigned

      public int getIntSigned(int numberBits)
    • readExpGolombSigned

      public int readExpGolombSigned()
    • readExpGolomb

      public int readExpGolomb()
    • getBytes

      public int getBytes(byte[] buffer, int offset, int len)
      Specified by:
      getBytes in interface IBitReader
    • isByteAligned

      public boolean isByteAligned()
    • byteAlignment

      public void byteAlignment() throws IOException
      Throws:
      IOException