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