Package org.lwjgl.util.hwloc
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newhwloc_obj.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionintarity()attr()@Nullable PointerBufferchildren()longlonglongcpuset()intdepth()@Nullable hwloc_objlonggp_index()infos()intio_arity()@Nullable hwloc_obj@Nullable hwloc_objintint@Nullable hwloc_objint@Nullable hwloc_obj@Nullable ByteBuffername()@Nullable String@Nullable hwloc_obj@Nullable hwloc_objlongnodeset()intos_index()@Nullable hwloc_objparent()@Nullable hwloc_obj@Nullable hwloc_objintsubtype()booleanlonginttype()longuserdata()userdata(long value) Sets the specified value to theuserdatafield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newhwloc_obj.Bufferinstance 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
public Buffer(long address, int cap)
-
-
Method Details
-
type
public int type()- Returns:
- the value of the
typefield.
-
subtype
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thesubtypefield.
-
subtypeString
- Returns:
- the null-terminated string pointed to by the
subtypefield.
-
os_index
public int os_index()- Returns:
- the value of the
os_indexfield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
total_memory
public long total_memory()- Returns:
- the value of the
total_memoryfield.
-
attr
- Returns:
- a
hwloc_obj_attr_uview of the struct pointed to by theattrfield.
-
depth
public int depth()- Returns:
- the value of the
depthfield.
-
logical_index
public int logical_index()- Returns:
- the value of the
logical_indexfield.
-
next_cousin
- Returns:
- a
hwloc_objview of the struct pointed to by thenext_cousinfield.
-
prev_cousin
- Returns:
- a
hwloc_objview of the struct pointed to by theprev_cousinfield.
-
parent
- Returns:
- a
hwloc_objview of the struct pointed to by theparentfield.
-
sibling_rank
public int sibling_rank()- Returns:
- the value of the
sibling_rankfield.
-
next_sibling
- Returns:
- a
hwloc_objview of the struct pointed to by thenext_siblingfield.
-
prev_sibling
- Returns:
- a
hwloc_objview of the struct pointed to by theprev_siblingfield.
-
arity
public int arity()- Returns:
- the value of the
arityfield.
-
children
- Returns:
- a
PointerBufferview of the data pointed to by thechildrenfield.
-
first_child
- Returns:
- a
hwloc_objview of the struct pointed to by thefirst_childfield.
-
last_child
- Returns:
- a
hwloc_objview of the struct pointed to by thelast_childfield.
-
symmetric_subtree
public boolean symmetric_subtree()- Returns:
- the value of the
symmetric_subtreefield.
-
memory_arity
public int memory_arity()- Returns:
- the value of the
memory_arityfield.
-
memory_first_child
- Returns:
- a
hwloc_objview of the struct pointed to by thememory_first_childfield.
-
io_arity
public int io_arity()- Returns:
- the value of the
io_arityfield.
-
io_first_child
- Returns:
- a
hwloc_objview of the struct pointed to by theio_first_childfield.
-
misc_arity
public int misc_arity()- Returns:
- the value of the
misc_arityfield.
-
misc_first_child
- Returns:
- a
hwloc_objview of the struct pointed to by themisc_first_childfield.
-
cpuset
public long cpuset()- Returns:
- the value of the
cpusetfield.
-
complete_cpuset
public long complete_cpuset()- Returns:
- the value of the
complete_cpusetfield.
-
nodeset
public long nodeset()- Returns:
- the value of the
nodesetfield.
-
complete_nodeset
public long complete_nodeset()- Returns:
- the value of the
complete_nodesetfield.
-
infos
- Returns:
- a
hwloc_infos_sview of theinfosfield.
-
userdata
public long userdata()- Returns:
- the value of the
userdatafield.
-
gp_index
public long gp_index()- Returns:
- the value of the
gp_indexfield.
-
userdata
Sets the specified value to theuserdatafield.
-