de.intarsys.nativec.type
Class NativeAbstractStringType

java.lang.Object
  extended by de.intarsys.nativec.type.NativeType
      extended by 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
protected NativeAbstractStringType(int pCharacterSize)
           
protected NativeAbstractStringType(int pStringSize, int pCharacterSize)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeAbstractStringType

protected NativeAbstractStringType(int pCharacterSize)

NativeAbstractStringType

protected NativeAbstractStringType(int pStringSize,
                                   int pCharacterSize)
Method Detail

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.

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()