Package jnr.ffi
Class StructLayout.Field
java.lang.Object
jnr.ffi.StructLayout.Field
- Direct Known Subclasses:
StructLayout.AbstractField
,StructLayout.NumberField
- Enclosing class:
- StructLayout
Interface all Struct members must implement.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StructLayout
Gets theStruct
thisMember
is a member of.final long
offset()
Gets the offset within the structure for this field.
-
Field Details
-
offset
private final int offset
-
-
Constructor Details
-
Field
protected Field(int offset)
-
-
Method Details
-
enclosing
Gets theStruct
thisMember
is a member of.- Returns:
- a
Struct
.
-
offset
public final long offset()Gets the offset within the structure for this field.- Returns:
- the offset within the structure.
-