Methods Summary |
---|
public byte | readByte()
return mByteBuffer.get();
|
public void | readByteArray(byte[] dst, int dstOffset, int byteCount)
assert dst.length >= dstOffset + byteCount;
mByteBuffer.get(dst, dstOffset, byteCount);
|
public int | readInt()
return mByteBuffer.getInt();
|
public void | readIntArray(int[] dst, int dstOffset, int intCount)
while (--intCount >= 0) {
dst[dstOffset++] = mByteBuffer.getInt();
}
|
public short | readShort()
return mByteBuffer.getShort();
|
public void | seek(int offset)
assert offset <= mSize;
mByteBuffer.position(offset);
|
public void | skip(int byteCount)
int newPosition = mByteBuffer.position() + byteCount;
assert newPosition <= mSize;
mByteBuffer.position(newPosition);
|