public interface MutableByteArray extends ByteArray
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MutableByteArray.Helper |
| Modifier and Type | Field and Description |
|---|---|
static MutableByteArray.Helper |
helper |
| Modifier and Type | Method and Description |
|---|---|
void |
append(byte element) |
void |
append(byte[]... sources) |
void |
append(byte[] source) |
void |
append(byte[] source,
int start) |
void |
append(byte[] source,
int start,
int end)
Append values from source buffer with range [start, end)
|
void |
append(ByteArray... sources) |
void |
append(ByteArray source) |
void |
append(ByteArray source,
int start) |
void |
append(ByteArray source,
int start,
int end) |
void |
append(char element)
Append the element to the tail
|
void |
insert(int index,
byte value)
Insert the value to this position
|
void |
insert(int index,
byte[] source) |
void |
insert(int index,
byte[] source,
int start) |
void |
insert(int index,
byte[] source,
int start,
int end)
Insert values from source buffer with range [start, end)
|
void |
insert(int index,
ByteArray source) |
void |
insert(int index,
ByteArray source,
int start) |
void |
insert(int index,
ByteArray source,
int start,
int end) |
static void |
insert(MutableData data,
int index,
byte value) |
static void |
insert(MutableData data,
int index,
byte[] source,
int start,
int end) |
byte |
pop()
Remove element from the tail position and return its value
|
void |
push(byte element) |
byte |
remove(int index)
Remove element at this position and return its value
|
static byte |
remove(MutableData data,
int index) |
void |
setByte(int index,
byte value)
Change byte value at this position
|
void |
setChar(int index,
char value) |
byte |
shift()
Remove element from the head position and return its value
|
void |
update(int index,
byte[] source) |
void |
update(int index,
byte[] source,
int start) |
void |
update(int index,
byte[] source,
int start,
int end)
Update values from source buffer with range [start, end)
|
void |
update(int index,
ByteArray source) |
void |
update(int index,
ByteArray source,
int start) |
void |
update(int index,
ByteArray source,
int start,
int end) |
static void |
update(MutableData data,
int index,
byte[] source,
int start,
int end) |
adjust, adjustE, concat, concat, concat, concat, equals, equals, equals, find, find, find, find, find, find, find, find, find, find, find, find, find, find, getBuffer, getByte, getBytes, getBytes, getBytes, getOffset, getSize, hexEncode, slice, slice, slice, slice, toHexStringstatic final MutableByteArray.Helper helper
void setByte(int index,
byte value)
index - - positionvalue - - byte valuevoid setChar(int index,
char value)
void update(int index,
byte[] source,
int start,
int end)
index - - update buffer from this relative positionsource - - source bufferstart - - source start position (include)end - - source end position (exclude)void update(int index,
byte[] source,
int start)
void update(int index,
byte[] source)
void update(int index,
ByteArray source,
int start,
int end)
void update(int index,
ByteArray source,
int start)
void update(int index,
ByteArray source)
void append(byte[] source,
int start,
int end)
source - - source bufferstart - - source start position (include)end - - source end position (exclude)void append(byte[] source,
int start)
void append(byte[] source)
void append(byte[]... sources)
void append(ByteArray source, int start, int end)
void append(ByteArray source, int start)
void append(ByteArray source)
void append(ByteArray... sources)
void insert(int index,
byte[] source,
int start,
int end)
index - - insert buffer from this relative positionsource - - source bufferstart - - source start position (include)end - - source end position (exclude)void insert(int index,
byte[] source,
int start)
void insert(int index,
byte[] source)
void insert(int index,
ByteArray source,
int start,
int end)
void insert(int index,
ByteArray source,
int start)
void insert(int index,
ByteArray source)
void insert(int index,
byte value)
index - - positionvalue - - byte valuebyte remove(int index)
index - - positionjava.lang.ArrayIndexOutOfBoundsException - on errorbyte shift()
java.lang.ArrayIndexOutOfBoundsException - on data emptybyte pop()
java.lang.ArrayIndexOutOfBoundsException - on data emptyvoid append(char element)
element - - valuevoid append(byte element)
void push(byte element)
static void update(MutableData data, int index, byte[] source, int start, int end)
static void insert(MutableData data, int index, byte[] source, int start, int end)
static void insert(MutableData data, int index, byte value)
static byte remove(MutableData data, int index)