Package de.intarsys.nativec.type
Class NativeStruct
java.lang.Object
de.intarsys.nativec.type.NativeObject
de.intarsys.nativec.type.NativeStruct
- All Implemented Interfaces:
INativeMemory,INativeObject
- Direct Known Subclasses:
NativeGenericStruct,NativeStaticStruct
An abstract superclass for the implementation of structured
NativeObject instances. These objects are built using named slots
with other INativeObject instances (as opposed to
NativeArray, using indexed slots).-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe number of bytes occupied by this.getNativeObject(String name) The NativeObject at the named slot name.getValue()A Java side representation from the memory.voidAssign (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, getNativeType, getShort, getString, getWideString, isNull, setByte, setByteArray, setCLong, setInt, setNativeHandle, setShort, setString, setWideString
-
Field Details
-
META
The meta class instance
-
-
Constructor Details
-
NativeStruct
public NativeStruct() -
NativeStruct
-
-
Method Details
-
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
The NativeObject at the named slot name.The marshalling is delegated to the StructMember in the StructDeclaration.
- Parameters:
name- The name of the slot in the structure.- Returns:
- The NativeObject at the named slot name.
-
getStructType
-
getValue
Description copied from interface:INativeObjectA Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject.
-
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
-