| java.lang.Object javassist.bytecode.ByteArray
ByteArray | public class ByteArray (Code) | | A collection of static methods for reading and writing a byte array.
|
Method Summary | |
static void | copy32bit(byte[] src, int isrc, byte[] dest, int idest) Copies a 32bit integer. | public static int | read32bit(byte[] code, int index) Reads a 32bit integer at the index. | public static int | readS16bit(byte[] code, int index) Reads a signed 16bit integer at the index. | public static int | readU16bit(byte[] code, int index) Reads an unsigned 16bit integer at the index. | public static void | write16bit(int value, byte[] code, int index) Writes a 16bit integer at the index. | public static void | write32bit(int value, byte[] code, int index) Writes a 32bit integer at the index. |
copy32bit | static void copy32bit(byte[] src, int isrc, byte[] dest, int idest)(Code) | | Copies a 32bit integer.
Parameters: src - the source byte array. Parameters: isrc - the index into the source byte array. Parameters: dest - the destination byte array. Parameters: idest - the index into the destination byte array. |
read32bit | public static int read32bit(byte[] code, int index)(Code) | | Reads a 32bit integer at the index.
|
readS16bit | public static int readS16bit(byte[] code, int index)(Code) | | Reads a signed 16bit integer at the index.
|
readU16bit | public static int readU16bit(byte[] code, int index)(Code) | | Reads an unsigned 16bit integer at the index.
|
write16bit | public static void write16bit(int value, byte[] code, int index)(Code) | | Writes a 16bit integer at the index.
|
write32bit | public static void write32bit(int value, byte[] code, int index)(Code) | | Writes a 32bit integer at the index.
|
|
|