Modifier and Type | Field and Description |
---|---|
private byte[] |
bytes |
private static int |
INITIAL_SIZE |
private int |
size |
Constructor and Description |
---|
ByteArray() |
ByteArray(byte[] byteArray) |
ByteArray(int size) |
Modifier and Type | Method and Description |
---|---|
void |
appendByte(int value) |
int |
at(int index)
Access an unsigned byte at location index.
|
boolean |
isEmpty() |
void |
reserve(int capacity) |
void |
set(byte[] source,
int offset,
int count) |
void |
set(int index,
int value) |
int |
size() |
private static final int INITIAL_SIZE
private byte[] bytes
private int size
public ByteArray()
public ByteArray(int size)
public ByteArray(byte[] byteArray)
public int at(int index)
index
- The index in the array to access.public void set(int index, int value)
public int size()
public boolean isEmpty()
public void appendByte(int value)
public void reserve(int capacity)
public void set(byte[] source, int offset, int count)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses