Maven module :un.storage : media-aac :
Class : un.storage.media.aac.syntax.BitStream
Extends/Implements : -
Subclasses : -

author  Alexander Simm


Variables : bitsCached, position
Functions : BitStream, BitStream, destroy, setData, byteAlign, reset, getPosition, getBitsLeft, readCache, readBits, readBit, readBool, peekBits, peekBit, skipBits, skipBit, maskBits




protected int bitsCached



protected int position




public void BitStream ()

public void BitStream (byte[] data)

public void destroy ()

public void setData (byte[] data)

public void byteAlign ()

public void reset ()

public int getPosition ()

public int getBitsLeft ()


Reads the next four bytes.
param  peek if true, the stream pointer will not be increased
protected int readCache (boolean peek)

public int readBits (int n)

public int readBit ()

public boolean readBool ()

public int peekBits (int n)

public int peekBit ()

public void skipBits (int n)

public void skipBit ()

public int maskBits (int n)