Package de.intarsys.nativec.type
Class NativeArrayType
- java.lang.Object
-
- de.intarsys.nativec.type.NativeType
-
- de.intarsys.nativec.type.NativeArrayType
-
- All Implemented Interfaces:
INativeType
public class NativeArrayType extends NativeType
The type for aNativeArray
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNativeArrayType(INativeType baseDeclaration, int arraySize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NativeArrayTypecreate(INativeType baseType, int size)INativeObjectcreateNative(INativeHandle handle)Create a newINativeObjectfrom aINativeHandle.INativeObjectcreateNative(java.lang.Object value)Create anINativeObjectfor this type from the Java object.intgetArraySize()intgetBaseSize()INativeTypegetBaseType()intgetByteCount()The size of the type in c memory.intgetPreferredBoundary()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 Detail
-
NativeArrayType
protected NativeArrayType(INativeType baseDeclaration, int arraySize)
-
-
Method Detail
-
create
public static NativeArrayType create(INativeType baseType, int size)
-
createNative
public INativeObject createNative(INativeHandle handle)
Description copied from interface:INativeTypeCreate a newINativeObjectfrom aINativeHandle.- Specified by:
createNativein interfaceINativeType- Overrides:
createNativein classNativeType- Parameters:
handle- The handle to memory.- Returns:
- The new
INativeObject
-
createNative
public INativeObject createNative(java.lang.Object value)
Description copied from interface:INativeTypeCreate anINativeObjectfor this type from the Java object.- Specified by:
createNativein interfaceINativeType- Overrides:
createNativein classNativeType- Returns:
- The new
INativeObject
-
getArraySize
public int getArraySize()
-
getBaseSize
public int getBaseSize()
-
getBaseType
public INativeType getBaseType()
-
getByteCount
public int getByteCount()
Description copied from interface:INativeTypeThe size of the type in c memory.- Specified by:
getByteCountin interfaceINativeType- Overrides:
getByteCountin classNativeType- Returns:
- The size of the type in c memory.
-
getPreferredBoundary
public int getPreferredBoundary()
Description copied from interface:INativeTypeThe 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.
-
-