Package de.intarsys.nativec.type
Interface INativeObject
-
- All Known Implementing Classes:
NativeArray
,NativeBuffer
,NativeByte
,NativeGenericStruct
,NativeInt
,NativeLong
,NativeLongLP64
,NativeNumber
,NativeObject
,NativeReference
,NativeShort
,NativeSimple
,NativeStaticStruct
,NativeString
,NativeStruct
,NativeVoid
,NativeWideString
public interface INativeObject
The Java object representation of a c memory construct.The
INativeObject
has a reference to c memory (theINativeHandle
and "marshalling" methods "getValue" and "setValue" to get and set the Java representation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getBytes()
The bytes that make up theINativeObject
.INativeHandle
getNativeHandle()
TheINativeHandle
to the c memory for the object.INativeType
getNativeType()
TheINativeType
for the object.java.lang.Object
getValue()
A Java side representation from the memory.void
setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation.
-
-
-
Method Detail
-
getBytes
byte[] getBytes()
The bytes that make up theINativeObject
.- Returns:
- The bytes that make up the
INativeObject
.
-
getNativeHandle
INativeHandle getNativeHandle()
TheINativeHandle
to the c memory for the object.- Returns:
-
getNativeType
INativeType getNativeType()
TheINativeType
for the object.- Returns:
-
getValue
java.lang.Object getValue()
A Java side representation from the memory.- Returns:
- A Java side representation for the
INativeObject
.
-
setValue
void setValue(java.lang.Object value)
Assign (and marshall to memory) the Java side representation.- Parameters:
value
- The new Java value.
-
-