javassist.bytecode
Class ByteArray
public
class
ByteArray
extends Object
A collection of static methods for reading and writing a byte array.
Method Summary |
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 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.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.