Class hwloc_location_u

All Implemented Interfaces:
Pointer

public class hwloc_location_u extends Struct<hwloc_location_u>

 union hwloc_location_u {
     hwloc_cpuset_t cpuset;
     hwloc_obj_t object;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int CPUSET
      The struct member offsets.
    • OBJECT

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

    • hwloc_location_u

      public hwloc_location_u(ByteBuffer container)
      Creates a hwloc_location_u 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_location_u>
    • cpuset

      public long cpuset()
      Returns:
      the value of the cpuset field.
    • object

      public hwloc_obj object()
      Returns:
      a hwloc_obj view of the struct pointed to by the object field.
    • create

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

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

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

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

      public static long ncpuset(long struct)
      Unsafe version of cpuset().
    • nobject

      public static hwloc_obj nobject(long struct)
      Unsafe version of object().