public class NativeArray extends NativeObject
INativeObject
that represents a homogeneous (this means of equal
length and type) sequence of other INativeObject
instances.Modifier and Type | Field and Description |
---|---|
static NativeArrayType |
META
The meta class instance
|
DEBUG, handle, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT
Modifier | Constructor and Description |
---|---|
protected |
NativeArray(NativeArrayType type) |
protected |
NativeArray(NativeArrayType type,
INativeHandle handle) |
Modifier and Type | Method and Description |
---|---|
static NativeArray |
create(INativeType baseType,
int size) |
INativeType |
getBaseType() |
int |
getByteCount()
The number of bytes occupied by this.
|
INativeObject |
getNativeObject(int index)
The
INativeObject at index in the sequence (the index'th element
of the array). |
INativeType |
getNativeType()
The meta information and behavior for the NativeObject.
|
int |
getSize()
The number of NativeObject instances in the sequence represented by this
(in other terms the array size).
|
java.lang.Object |
getValue()
A Java side representation from the memory.
|
java.lang.Object |
getValue(int index) |
void |
setBaseType(INativeType baseType) |
void |
setSize(int size) |
void |
setValue(int index,
java.lang.Object value) |
void |
setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation.
|
java.lang.String |
toNestedString()
A string for debugging purposes.
|
java.lang.String |
toString() |
allocate, cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString
public static final NativeArrayType META
protected NativeArray(NativeArrayType type)
protected NativeArray(NativeArrayType type, INativeHandle handle)
public static NativeArray create(INativeType baseType, int size)
public INativeType getBaseType()
public int getByteCount()
NativeObject
getByteCount
in class NativeObject
public INativeObject getNativeObject(int index)
INativeObject
at index in the sequence (the index'th element
of the array).index
- The index of the element to be reported.public INativeType getNativeType()
NativeObject
There is exactly one meta instance for all NativeObject instances of a certain type.
getNativeType
in interface INativeObject
getNativeType
in class NativeObject
public int getSize()
public java.lang.Object getValue()
INativeObject
INativeObject
.public java.lang.Object getValue(int index)
public void setBaseType(INativeType baseType)
public void setSize(int size)
public void setValue(int index, java.lang.Object value)
public void setValue(java.lang.Object value)
INativeObject
value
- The new Java value.public java.lang.String toNestedString()
NativeObject
toNestedString
in class NativeObject
public java.lang.String toString()
toString
in class java.lang.Object