public class ExtractorByteBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
position |
Constructor and Description |
---|
ExtractorByteBuffer(int size) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
long |
getAvailableByteCount() |
byte[] |
getData() |
int |
length() |
void |
put(byte[] src,
int offset,
int count) |
int |
readBytes(byte[] buffer,
int offset,
int length) |
int |
readBytes(java.nio.ByteBuffer buffer,
int length) |
int |
readInt() |
long |
readLong() |
int |
readUnsignedByte() |
int |
readUnsignedFixedPoint1616() |
long |
readUnsignedInt() |
int |
readUnsignedIntToInt()
Reads an unsigned integer into an integer.
|
long |
readUnsignedLongToLong()
Reads an unsigned long into a long.
|
int |
readUnsignedShort() |
void |
rewind(int bytes) |
void |
setPosition(int position) |
void |
skip(int bytes) |
public byte[] getData()
public int length()
public void setPosition(int position)
public void skip(int bytes)
public void rewind(int bytes)
public long getAvailableByteCount()
public void put(byte[] src, int offset, int count)
public int readBytes(byte[] buffer, int offset, int length)
public int readBytes(java.nio.ByteBuffer buffer, int length)
public int readUnsignedByte()
public int readUnsignedShort()
public long readUnsignedInt()
public int readInt()
public long readLong()
public int readUnsignedFixedPoint1616()
public int readUnsignedIntToInt()
java.lang.IllegalArgumentException
- If the top bit of the input data is set.public long readUnsignedLongToLong()
java.lang.IllegalArgumentException
- If the top bit of the input data is set.public void clear()