public class ByteArray extends java.lang.Object implements java.io.Serializable, DataElementValue
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXLENGTH_BYTEARRAY
The real maximum length of a byte[] array.
|
| Constructor and Description |
|---|
ByteArray(byte[]... arrays)
creates a new ByteArray instance out of an array of byte arrays.
|
ByteArray(long capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
arrays()
returns the number of byte arrays with which this ByteArray is constructed.
|
byte[] |
getArray(int index)
returns the byte array at specified index.
|
java.lang.String |
getDescription()
returns a description of the value used in dump methods
|
long |
getLength()
returns the length the value
|
long |
length()
returns the total length of the ByteArray, this is the sum of the lengths of the underlying byte arrays.
|
public static final int MAXLENGTH_BYTEARRAY
public ByteArray(byte[]... arrays)
arrays - the native byte arrays to be wrappedpublic ByteArray(long capacity)
public long length()
public int arrays()
public byte[] getArray(int index)
index - the index of the wrapped byte arraypublic long getLength()
DataElementValuegetLength in interface DataElementValuepublic java.lang.String getDescription()
DataElementValuegetDescription in interface DataElementValue