Top Description Constructors Methods
javassist.bytecode

public Class ByteArray

extends Object
Class Inheritance

A collection of static methods for reading and writing a byte array.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
copy32bit(byte[]
the source byte array.
src
,
int
the index into the source byte array.
isrc
,
byte[]
the destination byte array.
dest
,
int
the index into the destination byte array.
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ByteArrayback to summary
public ByteArray()

Method Detail

copy32bitback to summary
pack-priv static void copy32bit(byte[] src, int isrc, byte[] dest, int idest)

Copies a 32bit integer.

Parameters
src:byte[]

the source byte array.

isrc:int

the index into the source byte array.

dest:byte[]

the destination byte array.

idest:int

the index into the destination byte array.

read32bitback to summary
public static int read32bit(byte[] code, int index)

Reads a 32bit integer at the index.

readS16bitback to summary
public static int readS16bit(byte[] code, int index)

Reads a signed 16bit integer at the index.

readU16bitback to summary
public static int readU16bit(byte[] code, int index)

Reads an unsigned 16bit integer at the index.

write16bitback to summary
public static void write16bit(int value, byte[] code, int index)

Writes a 16bit integer at the index.

write32bitback to summary
public static void write32bit(int value, byte[] code, int index)

Writes a 32bit integer at the index.