Class hwloc_obj.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<hwloc_obj>, NativeResource, Pointer
Enclosing class:
hwloc_obj

public static class hwloc_obj.Buffer extends StructBuffer<hwloc_obj,hwloc_obj.Buffer> implements NativeResource
An array of hwloc_obj structs.
  • Constructor Details Link icon

    • Buffer Link icon

      public Buffer(ByteBuffer container)
      Creates a new hwloc_obj.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by hwloc_obj.SIZEOF, and its mark will be undefined.

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

    • Buffer Link icon

      public Buffer(long address, int cap)
  • Method Details Link icon

    • type Link icon

      public int type()
      Returns:
      the value of the type field.
    • subtype Link icon

      public ByteBuffer subtype()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the subtype field.
    • subtypeString Link icon

      public String subtypeString()
      Returns:
      the null-terminated string pointed to by the subtype field.
    • os_index Link icon

      public int os_index()
      Returns:
      the value of the os_index field.
    • name Link icon

      public @Nullable ByteBuffer name()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the name field.
    • nameString Link icon

      public @Nullable String nameString()
      Returns:
      the null-terminated string pointed to by the name field.
    • total_memory Link icon

      public long total_memory()
      Returns:
      the value of the total_memory field.
    • attr Link icon

      public hwloc_obj_attr_u attr()
      Returns:
      a hwloc_obj_attr_u view of the struct pointed to by the attr field.
    • depth Link icon

      public int depth()
      Returns:
      the value of the depth field.
    • logical_index Link icon

      public int logical_index()
      Returns:
      the value of the logical_index field.
    • next_cousin Link icon

      public @Nullable hwloc_obj next_cousin()
      Returns:
      a hwloc_obj view of the struct pointed to by the next_cousin field.
    • prev_cousin Link icon

      public @Nullable hwloc_obj prev_cousin()
      Returns:
      a hwloc_obj view of the struct pointed to by the prev_cousin field.
    • parent Link icon

      public @Nullable hwloc_obj parent()
      Returns:
      a hwloc_obj view of the struct pointed to by the parent field.
    • sibling_rank Link icon

      public int sibling_rank()
      Returns:
      the value of the sibling_rank field.
    • next_sibling Link icon

      public @Nullable hwloc_obj next_sibling()
      Returns:
      a hwloc_obj view of the struct pointed to by the next_sibling field.
    • prev_sibling Link icon

      public @Nullable hwloc_obj prev_sibling()
      Returns:
      a hwloc_obj view of the struct pointed to by the prev_sibling field.
    • arity Link icon

      public int arity()
      Returns:
      the value of the arity field.
    • children Link icon

      public @Nullable PointerBuffer children()
      Returns:
      a PointerBuffer view of the data pointed to by the children field.
    • first_child Link icon

      public @Nullable hwloc_obj first_child()
      Returns:
      a hwloc_obj view of the struct pointed to by the first_child field.
    • last_child Link icon

      public @Nullable hwloc_obj last_child()
      Returns:
      a hwloc_obj view of the struct pointed to by the last_child field.
    • symmetric_subtree Link icon

      public boolean symmetric_subtree()
      Returns:
      the value of the symmetric_subtree field.
    • memory_arity Link icon

      public int memory_arity()
      Returns:
      the value of the memory_arity field.
    • memory_first_child Link icon

      public @Nullable hwloc_obj memory_first_child()
      Returns:
      a hwloc_obj view of the struct pointed to by the memory_first_child field.
    • io_arity Link icon

      public int io_arity()
      Returns:
      the value of the io_arity field.
    • io_first_child Link icon

      public @Nullable hwloc_obj io_first_child()
      Returns:
      a hwloc_obj view of the struct pointed to by the io_first_child field.
    • misc_arity Link icon

      public int misc_arity()
      Returns:
      the value of the misc_arity field.
    • misc_first_child Link icon

      public @Nullable hwloc_obj misc_first_child()
      Returns:
      a hwloc_obj view of the struct pointed to by the misc_first_child field.
    • cpuset Link icon

      public long cpuset()
      Returns:
      the value of the cpuset field.
    • complete_cpuset Link icon

      public long complete_cpuset()
      Returns:
      the value of the complete_cpuset field.
    • nodeset Link icon

      public long nodeset()
      Returns:
      the value of the nodeset field.
    • complete_nodeset Link icon

      public long complete_nodeset()
      Returns:
      the value of the complete_nodeset field.
    • infos Link icon

      public hwloc_infos_s infos()
      Returns:
      a hwloc_infos_s view of the infos field.
    • userdata Link icon

      public long userdata()
      Returns:
      the value of the userdata field.
    • gp_index Link icon

      public long gp_index()
      Returns:
      the value of the gp_index field.
    • userdata Link icon

      public hwloc_obj.Buffer userdata(long value)
      Sets the specified value to the userdata field.