Package jnr.ffi

Class Struct.Member

java.lang.Object
jnr.ffi.Struct.Member
Direct Known Subclasses:
Struct.AbstractMember, Struct.NumberField
Enclosing class:
Struct

protected abstract class Struct.Member extends Object
Interface all Struct members must implement.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) abstract Pointer
    Gets the memory object used to store this Member
    (package private) abstract long
    Gets the offset within the structure for this field.
    (package private) abstract Struct
    Gets the Struct this Member is a member of.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Member

      protected Member()
  • Method Details

    • struct

      abstract Struct struct()
      Gets the Struct this Member is a member of.
      Returns:
      a Struct.
    • getMemory

      abstract Pointer getMemory()
      Gets the memory object used to store this Member
      Returns:
      a Pointer
    • offset

      abstract long offset()
      Gets the offset within the structure for this field.
      Returns:
      the offset within the structure for this field.