public abstract class ByteArray1D extends LayoutType
Modifier and Type | Field and Description |
---|---|
protected long |
length |
location
Modifier | Constructor and Description |
---|---|
protected |
ByteArray1D(long length) |
Modifier and Type | Method and Description |
---|---|
abstract byte |
at(long index)
Get an array element
|
long |
getLength()
Get the number of array elements.
|
abstract void |
put(long index,
byte value)
Set an array element
|
abstract ByteArray1D |
range(long startIdx,
long length)
Extract a sub range of the array
|
long |
sizeof()
Get the data size required for an array of a given length.
|
java.lang.String |
toString() |
bindLocation
public abstract byte at(long index)
index
- the element indexpublic final long getLength()
public abstract void put(long index, byte value)
index
- the element indexvalue
- new value of the array elementpublic abstract ByteArray1D range(long startIdx, long length)
startIdx
- the starting array indexlength
- the number of array elements to extractpublic long sizeof()
sizeof
in class LayoutType
length
- The number of elements.public java.lang.String toString()
toString
in class java.lang.Object