Package jnr.ffi
Class StructLayout.Field
- java.lang.Object
-
- jnr.ffi.StructLayout.Field
-
- Direct Known Subclasses:
StructLayout.AbstractField
,StructLayout.NumberField
- Enclosing class:
- StructLayout
protected abstract class StructLayout.Field extends java.lang.Object
Interface all Struct members must implement.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Field(int offset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructLayout
enclosing()
Gets theStruct
thisMember
is a member of.long
offset()
Gets the offset within the structure for this field.
-
-
-
Method Detail
-
enclosing
public final StructLayout 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.
-
-