Package de.intarsys.nativec.type
Class NativeArrayType
java.lang.Object
de.intarsys.nativec.type.NativeType
de.intarsys.nativec.type.NativeArrayType
- All Implemented Interfaces:
INativeType
The type for a
NativeArray
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NativeArrayType
(INativeType baseDeclaration, int arraySize) -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeArrayType
create
(INativeType baseType, int size) createNative
(INativeHandle handle) Create a newINativeObject
from aINativeHandle
.createNative
(Object value) Create anINativeObject
for this type from the Java object.int
int
int
The size of the type in c memory.int
The boundary where this type as a struct member would want to be aligned.Methods inherited from class de.intarsys.nativec.type.NativeType
Array, lookup, Ref, register
-
Constructor Details
-
NativeArrayType
-
-
Method Details
-
create
-
createNative
Description copied from interface:INativeType
Create a newINativeObject
from aINativeHandle
.- Specified by:
createNative
in interfaceINativeType
- Overrides:
createNative
in classNativeType
- Parameters:
handle
- The handle to memory.- Returns:
- The new
INativeObject
-
createNative
Description copied from interface:INativeType
Create anINativeObject
for this type from the Java object.- Specified by:
createNative
in interfaceINativeType
- Overrides:
createNative
in classNativeType
- Parameters:
value
-- Returns:
- The new
INativeObject
-
getArraySize
public int getArraySize() -
getBaseSize
public int getBaseSize() -
getBaseType
-
getByteCount
public int getByteCount()Description copied from interface:INativeType
The size of the type in c memory.- Specified by:
getByteCount
in interfaceINativeType
- Overrides:
getByteCount
in classNativeType
- Returns:
- The size of the type in c memory.
-
getPreferredBoundary
public int getPreferredBoundary()Description copied from interface:INativeType
The boundary where this type as a struct member would want to be aligned. A structure can override this value with packing.- Returns:
- The preferred alignment boundary.
-