org.bridj
Interface BridJRuntime.TypeInfo<T extends NativeObject>
- All Known Implementing Classes:
- CPPRuntime.CPPTypeInfo, CRuntime.CTypeInfo
- Enclosing interface:
- BridJRuntime
public static interface BridJRuntime.TypeInfo<T extends NativeObject>
Type information metadata + lifecycle management methods.
This class is not meant to be used by end users, it's used by runtimes.
cast
T cast(Pointer peer)
initialize
void initialize(T instance)
initialize
void initialize(T instance,
Pointer peer)
initialize
void initialize(T instance,
int constructorId,
Object[] args)
destroy
void destroy(T instance)
createReturnInstance
T createReturnInstance()
clone
T clone(T instance)
throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
getRuntime
BridJRuntime getRuntime()
getType
Type getType()
equal
boolean equal(T instance,
T other)
compare
int compare(T instance,
T other)
sizeOf
long sizeOf()
writeToNative
void writeToNative(T instance)
describe
String describe(T instance)
describe
String describe()
readFromNative
void readFromNative(T instance)
copyNativeObjectToAddress
void copyNativeObjectToAddress(T instance,
Pointer<T> ptr)
Copyright © 2009-2012. All Rights Reserved.