Class hwloc_group_attr_s

All Implemented Interfaces:
Pointer

public class hwloc_group_attr_s extends Struct<hwloc_group_attr_s>

 struct hwloc_group_attr_s {
     unsigned depth;
     unsigned kind;
     unsigned subkind;
     unsigned char dont_merge;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int DEPTH
      The struct member offsets.
    • KIND

      public static final int KIND
      The struct member offsets.
    • SUBKIND

      public static final int SUBKIND
      The struct member offsets.
    • DONT_MERGE

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

    • hwloc_group_attr_s

      public hwloc_group_attr_s(ByteBuffer container)
      Creates a hwloc_group_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_group_attr_s>
    • depth

      public int depth()
      Returns:
      the value of the depth field.
    • kind

      public int kind()
      Returns:
      the value of the kind field.
    • subkind

      public int subkind()
      Returns:
      the value of the subkind field.
    • dont_merge

      public boolean dont_merge()
      Returns:
      the value of the dont_merge field.
    • create

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

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

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

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

      public static int ndepth(long struct)
      Unsafe version of depth().
    • nkind

      public static int nkind(long struct)
      Unsafe version of kind().
    • nsubkind

      public static int nsubkind(long struct)
      Unsafe version of subkind().
    • ndont_merge

      public static boolean ndont_merge(long struct)
      Unsafe version of dont_merge().