Package com.wowza.util
Class BitReaderFast
- Object
-
- com.wowza.util.BitReaderFast
-
- All Implemented Interfaces:
IBitReader
public class BitReaderFast extends Object implements IBitReader
-
-
Constructor Summary
Constructors Constructor Description BitReaderFast(byte[] buffer)
BitReaderFast(byte[] buffer, int len)
BitReaderFast(byte[] buffer, int offset, int len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBytes(byte[] buffer, int offset, int len)
int
getInt(int numberBits)
int
getInt(int numberBits, boolean peek)
int
getIntLE(int numberBits)
int
getIntLE(int numberBits, boolean peek)
long
getLong(int numberBits)
long
getLong(int numberBits, boolean peek)
int
peekInt(int numberBits)
int
peekIntLE(int numberBits)
long
peekLong(int numberBits)
int
remaining()
void
skip(int numberBits)
-
-
-
Method Detail
-
remaining
public int remaining()
- Specified by:
remaining
in interfaceIBitReader
-
skip
public void skip(int numberBits)
- Specified by:
skip
in interfaceIBitReader
-
getInt
public int getInt(int numberBits)
- Specified by:
getInt
in interfaceIBitReader
-
peekInt
public int peekInt(int numberBits)
- Specified by:
peekInt
in interfaceIBitReader
-
getInt
public int getInt(int numberBits, boolean peek)
-
getIntLE
public int getIntLE(int numberBits)
- Specified by:
getIntLE
in interfaceIBitReader
-
peekIntLE
public int peekIntLE(int numberBits)
- Specified by:
peekIntLE
in interfaceIBitReader
-
getIntLE
public int getIntLE(int numberBits, boolean peek)
-
getLong
public long getLong(int numberBits)
- Specified by:
getLong
in interfaceIBitReader
-
peekLong
public long peekLong(int numberBits)
- Specified by:
peekLong
in interfaceIBitReader
-
getLong
public long getLong(int numberBits, boolean peek)
-
getBytes
public int getBytes(byte[] buffer, int offset, int len)
- Specified by:
getBytes
in interfaceIBitReader
-
-