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
public class NativeAbstractStringType extends NativeType
A meta class implementation
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NativeAbstractStringType(int pCharacterSize)
protected
NativeAbstractStringType(int pStringSize, int pCharacterSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.int
getStringSize()
boolean
hasByteCount()
-
Methods inherited from class de.intarsys.nativec.type.NativeType
Array, createNative, createNative, lookup, Ref, register
-
-
-
-
Method Detail
-
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()
-
-