Class hwloc_osdev_attr_s

All Implemented Interfaces:
Pointer

public class hwloc_osdev_attr_s extends Struct<hwloc_osdev_attr_s>

 struct hwloc_osdev_attr_s {
     hwloc_obj_osdev_types_t types;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPES

      public static final int TYPES
      The struct member offsets.
  • Constructor Details

    • hwloc_osdev_attr_s

      public hwloc_osdev_attr_s(ByteBuffer container)
      Creates a hwloc_osdev_attr_s instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<hwloc_osdev_attr_s>
    • types

      public long types()
      Returns:
      the value of the types field.
    • create

      public static hwloc_osdev_attr_s create(long address)
      Returns a new hwloc_osdev_attr_s instance for the specified memory address.
    • createSafe

      public static @Nullable hwloc_osdev_attr_s createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static hwloc_osdev_attr_s.Buffer create(long address, int capacity)
      Create a hwloc_osdev_attr_s.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable hwloc_osdev_attr_s.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • ntypes

      public static long ntypes(long struct)
      Unsafe version of types().