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