public interface ByteArray
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ByteArray.Helper |
| Modifier and Type | Field and Description |
|---|---|
static ByteArray.Helper |
helper |
| Modifier and Type | Method and Description |
|---|---|
static int |
adjust(int pos,
int len) |
static int |
adjustE(int pos,
int len) |
ByteArray |
concat(byte[]... others) |
static byte[] |
concat(byte[] leftBuffer,
int leftOffset,
int leftSize,
byte[] rightBuffer,
int rightOffset,
int rightSize) |
ByteArray |
concat(ByteArray... others) |
static ByteArray |
concat(ByteArray left,
ByteArray right) |
boolean |
equals(byte[] other) |
boolean |
equals(byte[] otherBuffer,
int otherOffset,
int otherCount) |
boolean |
equals(ByteArray other) |
int |
find(byte value) |
int |
find(byte[] bytes) |
int |
find(byte[] bytes,
int start) |
int |
find(byte[] bytes,
int start,
int end)
Search sub bytes in range [start, end)
|
int |
find(ByteArray sub) |
static int |
find(ByteArray data,
byte[] subBuffer,
int subOffset,
int subSize,
int start,
int end) |
static int |
find(ByteArray data,
byte value,
int start,
int end) |
int |
find(ByteArray sub,
int start) |
int |
find(ByteArray sub,
int start,
int end) |
int |
find(byte value,
int start) |
int |
find(byte value,
int start,
int end)
Search value in range [start, end)
|
int |
find(int value) |
int |
find(int value,
int start) |
int |
find(int value,
int start,
int end) |
byte[] |
getBuffer() |
byte |
getByte(int index)
Get item value with position
|
byte[] |
getBytes()
Get bytes from inner buffer with range [offset, offset + length)
|
byte[] |
getBytes(int start) |
byte[] |
getBytes(int start,
int end) |
int |
getOffset() |
int |
getSize() |
static java.lang.String |
hexEncode(byte[] buffer,
int offset,
int size) |
static byte[] |
slice(byte[] bytes,
int start,
int end) |
static ByteArray |
slice(ByteArray data,
int start,
int end) |
ByteArray |
slice(int start) |
ByteArray |
slice(int start,
int end) |
java.lang.String |
toHexString() |
static final ByteArray.Helper helper
byte[] getBuffer()
int getOffset()
int getSize()
java.lang.String toHexString()
boolean equals(ByteArray other)
boolean equals(byte[] other)
boolean equals(byte[] otherBuffer,
int otherOffset,
int otherCount)
byte getByte(int index)
index - - positionbyte[] getBytes()
byte[] getBytes(int start)
byte[] getBytes(int start,
int end)
ByteArray slice(int start)
ByteArray slice(int start, int end)
ByteArray concat(byte[]... others)
int find(byte value,
int start,
int end)
value - - element valuestart - - start position (include)end - - end position (exclude)int find(byte value,
int start)
int find(byte value)
int find(int value,
int start,
int end)
int find(int value,
int start)
int find(int value)
int find(byte[] bytes,
int start,
int end)
bytes - - sub viewstart - - start position (include)end - - end position (exclude)int find(byte[] bytes,
int start)
int find(byte[] bytes)
int find(ByteArray sub, int start, int end)
int find(ByteArray sub, int start)
int find(ByteArray sub)
static java.lang.String hexEncode(byte[] buffer,
int offset,
int size)
static int adjust(int pos,
int len)
static int adjustE(int pos,
int len)
static byte[] slice(byte[] bytes,
int start,
int end)
static byte[] concat(byte[] leftBuffer,
int leftOffset,
int leftSize,
byte[] rightBuffer,
int rightOffset,
int rightSize)
static int find(ByteArray data, byte value, int start, int end)
static int find(ByteArray data, byte[] subBuffer, int subOffset, int subSize, int start, int end)