|
intarsys nativeC library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.nativec.type.NativeType
public abstract class NativeType
A common superclass for INativeType
implementations
Method Summary | |
---|---|
INativeType |
Array(int size)
Create a Declaration that represents an array of this. |
INativeObject |
createNative(INativeHandle handle)
Create a new INativeObject from a INativeHandle . |
INativeObject |
createNative(Object value)
Create an INativeObject for this type from the Java object. |
int |
getByteCount()
The size of the type in c memory. |
int |
getPreferredBoundary()
The boundary where this type as a struct member would want to be aligned. |
static INativeType |
lookup(Class clazz)
|
INativeType |
Ref()
Create a Declaration that represents a reference to this. |
static void |
register(Class clazz,
INativeType type)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static INativeType lookup(Class clazz)
public static void register(Class clazz, INativeType type)
public INativeType Array(int size)
Array
in interface INativeType
size
- The predefined size for the array.
public INativeObject createNative(INativeHandle handle)
INativeType
INativeObject
from a INativeHandle
.
createNative
in interface INativeType
handle
- The handle to memory.
INativeObject
public INativeObject createNative(Object value)
INativeType
INativeObject
for this type from the Java object.
createNative
in interface INativeType
INativeObject
public int getPreferredBoundary()
INativeType
getPreferredBoundary
in interface INativeType
public int getByteCount()
INativeType
getByteCount
in interface INativeType
public INativeType Ref()
Ref
in interface INativeType
|
intarsys nativeC library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |