Package jnr.ffi

Class StructLayout.UnsignedLong

    • Constructor Detail

      • UnsignedLong

        public UnsignedLong()
        Creates a new native long field.
      • UnsignedLong

        public UnsignedLong​(StructLayout.Offset offset)
        Creates a new unsigned native long 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 int.
      • 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/64 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.
      • 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.
      • toString

        public final java.lang.String toString​(Pointer ptr)
        Returns a string representation of this field.
        Overrides:
        toString in class StructLayout.NumberField
        Parameters:
        ptr - The pointer to the field.
        Returns:
        a string representation of this field.