Package jnr.ffi

Class StructLayout.Signed32

    • Constructor Detail

      • Signed32

        public Signed32()
        Creates a new 32 bit integer field.
      • Signed32

        public Signed32​(StructLayout.Offset offset)
        Creates a new 32 bit signed integer field at a specific offset
        Parameters:
        offset - The offset within the memory area for this field.
    • Method Detail

      • get

        public final int get​(Pointer ptr)
        Gets the value for this field.
        Parameters:
        ptr - The pointer to the field.
        Returns:
        a int.
      • set

        public final void set​(Pointer ptr,
                              int value)
        Sets the value for this field.
        Parameters:
        ptr - The pointer to the field.
        value - the 32 bit value to set.
      • intValue

        public final int intValue​(Pointer ptr)
        Returns a java int representation of this field.
        Specified by:
        intValue in class StructLayout.NumberField
        Parameters:
        ptr - The pointer to the field.
        Returns:
        a java int value for this field.