Class hwloc_numanode_attr_s

All Implemented Interfaces:
Pointer

public class hwloc_numanode_attr_s extends Struct<hwloc_numanode_attr_s>
struct hwloc_numanode_attr_s {
    hwloc_uint64_t local_memory;
}
  • Field Details

    • SIZEOF

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

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

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

    • hwloc_numanode_attr_s

      public hwloc_numanode_attr_s(ByteBuffer container)
      Creates a hwloc_numanode_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_numanode_attr_s>
    • local_memory

      @NativeType("hwloc_uint64_t") public long local_memory()
      Returns:
      the value of the local_memory field.
    • create

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

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

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

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

      public static long nlocal_memory(long struct)
      Unsafe version of local_memory().