public class ByteArray
extends java.lang.Object
Constructor and Description |
---|
ByteArray() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
copy32bit(byte[] src,
int isrc,
byte[] dest,
int idest)
Copies a 32bit integer.
|
static int |
read32bit(byte[] code,
int index)
Reads a 32bit integer at the index.
|
static int |
readS16bit(byte[] code,
int index)
Reads a signed 16bit integer at the index.
|
static int |
readU16bit(byte[] code,
int index)
Reads an unsigned 16bit integer at the index.
|
static void |
write16bit(int value,
byte[] code,
int index)
Writes a 16bit integer at the index.
|
static void |
write32bit(int value,
byte[] code,
int index)
Writes a 32bit integer at the index.
|
public static int readU16bit(byte[] code, int index)
public static int readS16bit(byte[] code, int index)
public static void write16bit(int value, byte[] code, int index)
public static int read32bit(byte[] code, int index)
public static void write32bit(int value, byte[] code, int index)
static void copy32bit(byte[] src, int isrc, byte[] dest, int idest)
src
- the source byte array.isrc
- the index into the source byte array.dest
- the destination byte array.idest
- the index into the destination byte array.