Package de.intarsys.nativec.type
Interface INativeObject
- All Superinterfaces:
INativeMemory
- All Known Implementing Classes:
NativeArray,NativeBuffer,NativeByte,NativeFloat,NativeFunction,NativeGenericStruct,NativeInt,NativeLong,NativeLongLP64,NativeNumber,NativeObject,NativeReference,NativeShort,NativeSimple,NativeStaticStruct,NativeString,NativeStruct,NativeVoid,NativeWideString
In addition to its reference to c memory (see
INativeMemory) the
INativeObject has "marshalling" methods "getValue" and "setValue" to
get and set the Java representation.-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()The bytes that make up theINativeObject.TheINativeTypefor the object.getValue()A Java side representation from the memory.voidAssign (and marshall to memory) the Java side representation.Methods inherited from interface de.intarsys.nativec.type.INativeMemory
getNativeHandle
-
Method Details
-
getBytes
byte[] getBytes()The bytes that make up theINativeObject.- Returns:
- The bytes that make up the
INativeObject.
-
getNativeType
INativeType getNativeType()TheINativeTypefor the object.- Returns:
- The
INativeTypefor the object.
-
getValue
Object getValue()A Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject.
-
setValue
Assign (and marshall to memory) the Java side representation.- Parameters:
value- The new Java value.
-