public static class ByteDataVariable.Int32Array
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ByteDataAccessBase |
acc |
ByteDataVariable.Int32[] |
array
The array can be inspect in debug view.
|
private int |
ixData |
private int |
lengthData |
Constructor and Description |
---|
Int32Array(ByteDataAccessBase acc,
int ixData,
int size)
Constructs on a given position inside the parent access.
|
Modifier and Type | Method and Description |
---|---|
int |
get(int ix)
Get a value from indexed element.
|
void |
set(int ix,
int val)
Set a value to the indexed element.
|
java.lang.String |
toString()
Shows the value for debugging view integer and hexa.
|
private final int ixData
private final int lengthData
private final ByteDataAccessBase acc
public final ByteDataVariable.Int32[] array
public Int32Array(ByteDataAccessBase acc, int ixData, int size)
acc
- parent contains the data pointer and the base index in data.ixData
- byte position relative in parent structure.size
- size in numbers of elements from the given type.public int get(int ix)
array[ix].get();
ix
- the position in the one-dimensional arraypublic void set(int ix, int val)
ix
- the position in the one-dimensional arrayval
- public java.lang.String toString()
toString
in class java.lang.Object