public class BinaryUtils
extends java.lang.Object
Constructor and Description |
---|
BinaryUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
nextOccur(byte[] find,
byte[] content,
int start)
Find the offset of a binary pattern in an array
|
static int |
readByte(byte[] content,
int offset) |
static long |
readInt2Bytes(byte[] content,
int offset) |
static long |
readInt4bytes(byte[] content,
int offset) |
static void |
writeInt4Byte(byte[] content,
int offset,
long value) |
public static int nextOccur(byte[] find, byte[] content, int start)
find
- content
- start
- public static long readInt4bytes(byte[] content, int offset)
public static void writeInt4Byte(byte[] content, int offset, long value)
public static long readInt2Bytes(byte[] content, int offset)
public static int readByte(byte[] content, int offset)