|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.nativec.type.NativeType
de.intarsys.nativec.type.NativeStructType
public class NativeStructType
The meta class implementation
Constructor Summary | |
---|---|
protected |
NativeStructType()
|
protected |
NativeStructType(java.lang.Class<?> instanceClass)
|
Method Summary | |
---|---|
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()
|
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, wait, wait, wait |
Constructor Detail |
---|
protected NativeStructType()
protected NativeStructType(java.lang.Class<?> instanceClass)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |