Package de.intarsys.nativec.type
Class NativeType
java.lang.Object
de.intarsys.nativec.type.NativeType
- All Implemented Interfaces:
INativeType
- Direct Known Subclasses:
NativeAbstractStringType,NativeArrayType,NativeBufferType,NativeReferenceType,NativeSimpleType,NativeStructType
A common superclass for
INativeType implementations-
Method Summary
Modifier and TypeMethodDescriptionArray(int size) Create a Declaration that represents an array of this.createNative(INativeHandle handle) Create a newINativeObjectfrom aINativeHandle.createNative(Object value) Create anINativeObjectfor this type from the Java object.intThe size of the type in c memory.static INativeTypeRef()Create a Declaration that represents a reference to this.static voidregister(Class<?> clazz, INativeType type) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.intarsys.nativec.type.INativeType
getPreferredBoundary
-
Method Details
-
lookup
-
register
-
Array
Create a Declaration that represents an array of this.- Specified by:
Arrayin interfaceINativeType- Parameters:
size- The predefined size for the array.- Returns:
- Create a Declaration that represents an array of this.
-
createNative
Description copied from interface:INativeTypeCreate a newINativeObjectfrom aINativeHandle.- Specified by:
createNativein interfaceINativeType- Parameters:
handle- The handle to memory.- Returns:
- The new
INativeObject
-
createNative
Description copied from interface:INativeTypeCreate anINativeObjectfor this type from the Java object.- Specified by:
createNativein interfaceINativeType- Returns:
- The new
INativeObject
-
getByteCount
public int getByteCount()Description copied from interface:INativeTypeThe size of the type in c memory.- Specified by:
getByteCountin interfaceINativeType- Returns:
- The size of the type in c memory.
-
Ref
Create a Declaration that represents a reference to this.- Specified by:
Refin interfaceINativeType- Returns:
- Create a Declaration that represents a reference to this.
-