Package jnr.ffi

Class StructLayout.Unsigned32

    • Constructor Detail

      • Unsigned32

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

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

      • get

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

        public final void set​(Pointer ptr,
                              long value)
        Sets the value for this field.
        Parameters:
        ptr - The pointer to the field.
        value - the 32 bit unsigned 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.
      • longValue

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