org.objectweb.asm
public class ByteVector extends Object
Constructor Summary | |
---|---|
ByteVector()
Constructs a new ByteVector with a default initial
size. | |
ByteVector(int initialSize)
Constructs a new ByteVector with the given initial
size.
|
Method Summary | |
---|---|
ByteVector | putByte(int b)
Puts a byte into this byte vector. |
ByteVector | putByteArray(byte[] b, int off, int len)
Puts an array of bytes into this byte vector. |
ByteVector | putInt(int i)
Puts an int into this byte vector. |
ByteVector | putLong(long l)
Puts a long into this byte vector. |
ByteVector | putShort(int s)
Puts a short into this byte vector. |
ByteVector | putUTF8(String s)
Puts an UTF8 string into this byte vector. |
ByteVector
with a default initial
size. ByteVector
with the given initial
size.
Parameters: initialSize the initial size of the byte vector to be constructed.
Parameters: b a byte.
Returns: this byte vector.
Parameters: b an array of bytes. May be null to put len null bytes into this byte vector. off index of the fist byte of b that must be copied. len number of bytes of b that must be copied.
Returns: this byte vector.
Parameters: i an int.
Returns: this byte vector.
Parameters: l a long.
Returns: this byte vector.
Parameters: s a short.
Returns: this byte vector.
Parameters: s a String.
Returns: this byte vector.