public static interface ByteArray.Helper
| Modifier and Type | Method and Description |
|---|---|
int |
adjust(int pos,
int len) |
int |
adjustE(int pos,
int len) |
byte[] |
concat(byte[] leftBuffer,
int leftOffset,
int leftSize,
byte[] rightBuffer,
int rightOffset,
int rightSize) |
ByteArray |
concat(ByteArray left,
ByteArray right) |
int |
find(ByteArray data,
byte[] subBuffer,
int subOffset,
int subSize,
int start,
int end)
Search sub view in range [start, end)
|
int |
find(ByteArray data,
byte value,
int start,
int end)
Search value in range [start, end)
|
java.lang.String |
hexEncode(byte[] buffer,
int offset,
int size) |
byte[] |
slice(byte[] bytes,
int start,
int end) |
ByteArray |
slice(ByteArray data,
int start,
int end)
Get bytes within range [start, end)
|
java.lang.String hexEncode(byte[] buffer,
int offset,
int size)
int adjust(int pos,
int len)
int adjustE(int pos,
int len)
ByteArray slice(ByteArray data, int start, int end)
data - - data viewstart - - start position (include)end - - end position (exclude)byte[] slice(byte[] bytes,
int start,
int end)
byte[] concat(byte[] leftBuffer,
int leftOffset,
int leftSize,
byte[] rightBuffer,
int rightOffset,
int rightSize)
int find(ByteArray data, byte value, int start, int end)
data - - this data objectvalue - - element valuestart - - start position (include)end - - end position (exclude)int find(ByteArray data, byte[] subBuffer, int subOffset, int subSize, int start, int end)
data - - this data objectsubBuffer - - sub data buffersubOffset - - sub view offsetsubSize - - sub view sizestart - - start position (include)end - - end position (exclude)