public class ByteBuffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<byte[]> |
arrayOfArrays |
protected static int |
arrayShift |
protected static int |
arraySize |
protected byte[] |
currentBuffer |
protected int |
currentIndex |
protected int |
totalBytes |
Constructor and Description |
---|
ByteBuffer()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
appendByte(byte b)
Add a byte to the buffer at the end.
|
void |
clear()
Clear the buffer.
|
byte |
readByte(int position)
Read a byte from the buffer from the specified place.
|
int |
size()
Get the current buffer length.
|
protected static final int arraySize
protected static final int arrayShift
protected final java.util.List<byte[]> arrayOfArrays
protected int totalBytes
protected int currentIndex
protected byte[] currentBuffer