CObjectMapper

public class CObjectMapper implements Mapper

Mapper for C structures.

Methods

toJava

public Object toJava(long peer, JavaObjectConstructionInfo info)

Creates a Java NativeObject.

At first it copies the peer if needed, then it creates a NativeObject with reflection. The reflected constructor cached in info.data. After the construction it returns the resulted object.

toNative

public long toNative(Object instance, NativeObjectConstructionInfo info)

Gets the native structure pointer from the NativeObject and returns it.