Package de.intarsys.nativec.type
Class NativeAbstractStringType
java.lang.Object
de.intarsys.nativec.type.NativeType
de.intarsys.nativec.type.NativeAbstractStringType
- All Implemented Interfaces:
INativeType
- Direct Known Subclasses:
NativeStringType
,NativeWideStringType
A meta class implementation
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
NativeAbstractStringType
(int pCharacterSize) protected
NativeAbstractStringType
(int pStringSize, int pCharacterSize) -
Method Summary
Modifier and TypeMethodDescriptionint
The size of the type in c memory.int
The boundary where this type as a struct member would want to be aligned.int
boolean
Methods inherited from class de.intarsys.nativec.type.NativeType
Array, createNative, createNative, lookup, Ref, register
-
Constructor Details
-
NativeAbstractStringType
protected NativeAbstractStringType(int pCharacterSize) -
NativeAbstractStringType
protected NativeAbstractStringType(int pStringSize, int pCharacterSize)
-
-
Method Details
-
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.
-
getStringSize
public int getStringSize() -
hasByteCount
public boolean hasByteCount()
-