Package jnr.ffi

Class Struct.Address

Enclosing class:
Struct

public class Struct.Address extends Struct.NumberField
Represents a native memory address.
  • Constructor Details

    • Address

      public Address()
      Creates a new Address field.
    • Address

      public Address(Struct.Offset offset)
  • Method Details

    • get

      public final Address get()
      Reads an Address value from the struct.
      Returns:
      a Address.
    • set

      public final void set(Address value)
      Puts a Address value into the native memory.
      Parameters:
      value - the value to write.
    • set

      public void set(Number value)
      Description copied from class: Struct.NumberField
      Sets the field to a new value.
      Specified by:
      set in class Struct.NumberField
      Parameters:
      value - The new value.
    • intValue

      public final int intValue()
      Returns an integer representation of this address.
      Specified by:
      intValue in class Struct.NumberField
      Returns:
      an integer value for this address.
    • longValue

      public final long longValue()
      Returns an long representation of this address.
      Overrides:
      longValue in class Struct.NumberField
      Returns:
      an long value for this address.
    • toString

      public final String toString()
      Returns a string representation of this Address.
      Overrides:
      toString in class Struct.NumberField
      Returns:
      a string representation of this Address.