Package de.intarsys.nativec.type
Class NativeReference<T extends INativeObject>
java.lang.Object
de.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeReference<T>
- All Implemented Interfaces:
INativeMemory,INativeObject
An object representing a reference to another object ("pointer").
-
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 <U extends INativeObject>
NativeReference<U>create(INativeType baseType) intThe number of bytes occupied by this.The meta information and behavior for the NativeObject.longgetValue()A Java side representation from the memory.voidsetBaseType(INativeType baseType) voidAssign (and marshall to memory) the Java side representation.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, toNestedString
-
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.
-
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.
-
getReferencedAddress
public long getReferencedAddress() -
getValue
Description copied from interface:INativeObjectA Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject.
-
setBaseType
-
setValue
Description copied from interface:INativeObjectAssign (and marshall to memory) the Java side representation.- Parameters:
value- The new Java value.
-
toString
-