intarsys nativeC library

de.intarsys.nativec.api
Interface INativeObject

All Known Implementing Classes:
NativeArray, NativeBuffer, NativeByte, NativeLong, NativeNumber, NativeObject, NativePrimitive, NativeReference, NativeShort, NativeString, NativeStruct, NativeVoid

public interface INativeObject

The Java object representation of a c memory construct.

The INativeObject has a reference to c memory (the INativeHandle and "marshalling" methods "getValue" and "setValue" to get and set the Java representation.


Method Summary
 byte[] getBytes()
          The bytes that make up the INativeObject.
 INativeHandle getNativeHandle()
          The INativeHandle to the c memory for the object.
 Object getValue()
          A Java side representation from the memory.
 void setValue(Object value)
          Assign (and marshall to memory) the Java side representation.
 

Method Detail

getBytes

byte[] getBytes()
The bytes that make up the INativeObject.

Returns:
The bytes that make up the INativeObject.

getNativeHandle

INativeHandle getNativeHandle()
The INativeHandle to the c memory for the object.

Returns:

getValue

Object getValue()
A Java side representation from the memory.

Returns:
A Java side representation for the INativeObject.

setValue

void setValue(Object value)
Assign (and marshall to memory) the Java side representation.

Parameters:
value - The new Java value.

intarsys nativeC library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.