classUtils.javassist.bytecode
Class ByteArray

java.lang.Object
  extended by classUtils.javassist.bytecode.ByteArray

public class ByteArray
extends java.lang.Object

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


Constructor Summary
ByteArray()
           
 
Method Summary
static int read32bit(byte[] code, int index)
          Reads a 32bit integer affineTransform the index.
static int readS16bit(byte[] code, int index)
          Reads a signed 16bit integer affineTransform the index.
static int readU16bit(byte[] code, int index)
          Reads an unsigned 16bit integer affineTransform the index.
static void write16bit(int value, byte[] code, int index)
          Writes a 16bit integer affineTransform the index.
static void write32bit(int value, byte[] code, int index)
          Writes a 32bit integer affineTransform the index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArray

public ByteArray()
Method Detail

readU16bit

public static int readU16bit(byte[] code,
                             int index)
Reads an unsigned 16bit integer affineTransform the index.


readS16bit

public static int readS16bit(byte[] code,
                             int index)
Reads a signed 16bit integer affineTransform the index.


write16bit

public static void write16bit(int value,
                              byte[] code,
                              int index)
Writes a 16bit integer affineTransform the index.


read32bit

public static int read32bit(byte[] code,
                            int index)
Reads a 32bit integer affineTransform the index.


write32bit

public static void write32bit(int value,
                              byte[] code,
                              int index)
Writes a 32bit integer affineTransform the index.