ahc.util.bytes
Class ByteArray
java.lang.Object
|
+--ahc.util.bytes.ByteArray
- public class ByteArray
- extends java.lang.Object
This class serves as an object-oriented interface to a byte array with a couple of convenience methods.
- Author:
- Arno Haase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArray
public ByteArray()
ByteArray
public ByteArray(int[] data)
ByteArray
public ByteArray(byte[] data)
ByteArray
public ByteArray(ByteArray data)
asBytes
public byte[] asBytes()
getSize
public int getSize()
addInt8
public void addInt8(int num)
addInt16
public void addInt16(int num)
addInt32
public void addInt32(int num)
add
public void add(byte[] bytes)
add
public void add(int[] bytes)
add
public void add(ByteArray other)