INativeType
NativeAbstractStringType
, NativeArrayType
, NativeBufferType
, NativeReferenceType
, NativeSimpleType
, NativeStructType
public abstract class NativeType extends java.lang.Object implements INativeType
INativeType
implementationsModifier | Constructor | Description |
---|---|---|
protected |
NativeType() |
|
protected |
NativeType(java.lang.Class<?> instanceClass) |
Modifier and Type | Method | Description |
---|---|---|
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(java.lang.Object value) |
Create an
INativeObject for this type from the Java object. |
int |
getByteCount() |
The size of the type in c memory.
|
static INativeType |
lookup(java.lang.Class<?> clazz) |
|
INativeType |
Ref() |
Create a Declaration that represents a reference to this.
|
static void |
register(java.lang.Class<?> clazz,
INativeType type) |
getPreferredBoundary
protected NativeType()
protected NativeType(java.lang.Class<?> instanceClass)
public static INativeType lookup(java.lang.Class<?> clazz)
public static void register(java.lang.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(java.lang.Object value)
INativeType
INativeObject
for this type from the Java object.createNative
in interface INativeType
INativeObject
public int getByteCount()
INativeType
getByteCount
in interface INativeType
public INativeType Ref()
Ref
in interface INativeType