Package de.intarsys.nativec.type
Class NativeArray
java.lang.Object
de.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeArray
- All Implemented Interfaces:
INativeMemory,INativeObject
An
INativeObject that represents a homogeneous (this means of equal
length and type) sequence of other INativeObject instances.-
Field Summary
FieldsFields inherited from class de.intarsys.nativec.type.NativeObject
DEBUG, SHIFT_INT, SHIFT_LONG, SHIFT_LONGLONG, SIZE_BYTE, SIZE_FLOAT, SIZE_INT, SIZE_LONG, SIZE_LONGLONG, SIZE_PTR, SIZE_SHORT -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeArraycreate(INativeType baseType, int size) intThe number of bytes occupied by this.getNativeObject(int index) TheINativeObjectat index in the sequence (the index'th element of the array).The meta information and behavior for the NativeObject.intgetSize()The number of NativeObject instances in the sequence represented by this (in other terms the array size).getValue()A Java side representation from the memory.getValue(int index) voidsetBaseType(INativeType baseType) voidsetSize(int size) voidvoidAssign (and marshall to memory) the Java side representation.A string for debugging purposes.toString()Methods inherited from class de.intarsys.nativec.type.NativeObject
cast, createReference, getByte, getByteArray, getBytes, getCLong, getInt, getNativeHandle, getNativeHandle, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString
-
Field Details
-
META
The meta class instance
-
-
Method Details
-
create
-
getBaseType
-
getByteCount
public int getByteCount()Description copied from class:NativeObjectThe number of bytes occupied by this.- Specified by:
getByteCountin classNativeObject- Returns:
- The number of bytes occupied by this.
-
getNativeObject
TheINativeObjectat index in the sequence (the index'th element of the array).- Parameters:
index- The index of the element to be reported.- Returns:
- The NativeObject at index
-
getNativeType
Description copied from class:NativeObjectThe meta information and behavior for the NativeObject.There is exactly one meta instance for all NativeObject instances of a certain type.
- Specified by:
getNativeTypein interfaceINativeObject- Specified by:
getNativeTypein classNativeObject- Returns:
- The meta information and behavior for the NativeObject.
-
getSize
public int getSize()The number of NativeObject instances in the sequence represented by this (in other terms the array size).- Returns:
- The number of NativeObject instances in the sequence represented by this
-
getValue
Description copied from interface:INativeObjectA Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject.
-
getValue
-
setBaseType
-
setSize
public void setSize(int size) -
setValue
-
setValue
Description copied from interface:INativeObjectAssign (and marshall to memory) the Java side representation.- Parameters:
value- The new Java value.
-
toNestedString
Description copied from class:NativeObjectA string for debugging purposes.- Overrides:
toNestedStringin classNativeObject- Returns:
- A string for debugging purposes.
-
toString
-