de.intarsys.nativec.type
public class NativeStructType extends NativeType
Modifier | Constructor and Description |
---|---|
protected |
NativeStructType() |
protected |
NativeStructType(java.lang.Class<?> instanceClass) |
Modifier and Type | Method and Description |
---|---|
StructMember |
declare(java.lang.String name,
INativeType declaration)
Declare a new member for the struct.
|
int |
getByteBoundary() |
int |
getByteCount()
The size of the type in c memory.
|
int |
getByteSize()
The total size of the StructDeclaration.
|
StructMember |
getField(java.lang.String name) |
java.util.List<StructMember> |
getFields()
The collection of StructMember instances in declaration order.
|
int |
getFieldsSize() |
INativeObject |
getNativeObject(NativeStruct struct,
java.lang.String name) |
int |
getPacking() |
int |
getPreferredBoundary()
The boundary where this type as a struct member would want to be aligned.
|
void |
setPacking(int pPacking) |
java.lang.String |
toString() |
Array, createNative, createNative, lookup, Ref, register
protected NativeStructType()
protected NativeStructType(java.lang.Class<?> instanceClass)
public StructMember declare(java.lang.String name, INativeType declaration)
name
- The name of the new member slot.declaration
- The type declaration for the slotpublic int getByteBoundary()
public int getByteCount()
INativeType
getByteCount
in interface INativeType
getByteCount
in class NativeType
public int getByteSize()
public StructMember getField(java.lang.String name)
public java.util.List<StructMember> getFields()
public int getFieldsSize()
public INativeObject getNativeObject(NativeStruct struct, java.lang.String name)
public int getPacking()
public int getPreferredBoundary()
INativeType
public void setPacking(int pPacking)
public java.lang.String toString()
toString
in class java.lang.Object