|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Type
jnr.ffi.StructLayout
public class StructLayout
| Constructor Summary | |
|---|---|
protected |
StructLayout(Runtime runtime)
Creates a new StructLayout. |
| Method Summary | ||
|---|---|---|
protected int |
addField(int size,
int align)
|
|
protected int |
addField(int size,
int align,
Struct.Offset offset)
|
|
protected int |
addField(Type t)
|
|
protected int |
addField(Type t,
Struct.Offset offset)
|
|
int |
alignment()
The native alignment of this type, in bytes |
|
protected
|
array(T[] array)
Creates an array of Member instances. |
|
protected void |
arrayBegin()
Starts an array construction session |
|
protected void |
arrayEnd()
Ends an array construction session |
|
NativeType |
getNativeType()
The native type of this type |
|
Runtime |
getRuntime()
|
|
protected
|
inner(T structLayout)
|
|
int |
offset()
|
|
int |
size()
The size in bytes of this type. |
|
java.lang.String |
toString()
Returns a human readable String representation of the structure. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected StructLayout(Runtime runtime)
| Method Detail |
|---|
public final Runtime getRuntime()
public final int size()
Type
size in class Typepublic final int alignment()
Type
alignment in class Typepublic final int offset()
public NativeType getNativeType()
Type
getNativeType in class Typepublic java.lang.String toString()
String representation of the structure.
toString in class java.lang.Object
protected final int addField(int size,
int align)
protected final int addField(int size,
int align,
Struct.Offset offset)
protected final int addField(Type t)
protected final int addField(Type t,
Struct.Offset offset)
protected final void arrayBegin()
protected final void arrayEnd()
protected <T extends StructLayout.Field> T[] array(T[] array)
T - The type of the Member subclass to create.array - the array to store the instances in
protected final <T extends StructLayout> T inner(T structLayout)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||