intarsys nativeC library

de.intarsys.nativec.type
Class NativeArrayType

java.lang.Object
  extended by de.intarsys.nativec.type.NativeType
      extended by de.intarsys.nativec.type.NativeArrayType
All Implemented Interfaces:
INativeType

public class NativeArrayType
extends NativeType

The type for a NativeArray


Method Summary
static NativeArrayType create(INativeType baseType, int size)
           
 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 getArraySize()
           
 int getBaseSize()
           
 INativeType getBaseType()
           
 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.
 
Methods inherited from class de.intarsys.nativec.type.NativeType
Array, lookup, Ref, register
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static NativeArrayType create(INativeType baseType,
                                     int size)

createNative

public INativeObject createNative(INativeHandle handle)
Description copied from interface: INativeType
Create a new INativeObject from a INativeHandle.

Specified by:
createNative in interface INativeType
Overrides:
createNative in class NativeType
Parameters:
handle - The handle to memory.
Returns:
The new INativeObject

createNative

public INativeObject createNative(Object value)
Description copied from interface: INativeType
Create an INativeObject for this type from the Java object.

Specified by:
createNative in interface INativeType
Overrides:
createNative in class NativeType
Returns:
The new INativeObject

getArraySize

public int getArraySize()

getBaseSize

public int getBaseSize()

getBaseType

public INativeType getBaseType()

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.

Specified by:
getPreferredBoundary in interface INativeType
Overrides:
getPreferredBoundary in class NativeType
Returns:
The preferred alignment boundary.

getByteCount

public int getByteCount()
Description copied from interface: INativeType
The size of the type in c memory.

Specified by:
getByteCount in interface INativeType
Overrides:
getByteCount in class NativeType
Returns:
The size of the type in c memory.

intarsys nativeC library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.