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.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionint
arity()
attr()
@Nullable PointerBuffer
children()
long
long
long
cpuset()
int
depth()
@Nullable hwloc_obj
long
gp_index()
infos()
int
io_arity()
@Nullable hwloc_obj
@Nullable hwloc_obj
int
int
@Nullable hwloc_obj
int
@Nullable hwloc_obj
@Nullable ByteBuffer
name()
@Nullable String
@Nullable hwloc_obj
@Nullable hwloc_obj
long
nodeset()
int
os_index()
@Nullable hwloc_obj
parent()
@Nullable hwloc_obj
@Nullable hwloc_obj
int
subtype()
boolean
long
int
type()
long
userdata()
userdata
(long value) Sets the specified value to theuserdata
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newhwloc_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
public Buffer(long address, int cap)
-
-
Method Details
-
type
public int type()- Returns:
- the value of the
type
field.
-
subtype
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thesubtype
field.
-
subtypeString
- Returns:
- the null-terminated string pointed to by the
subtype
field.
-
os_index
public int os_index()- Returns:
- the value of the
os_index
field.
-
name
- Returns:
- a
ByteBuffer
view of the null-terminated string pointed to by thename
field.
-
nameString
- Returns:
- the null-terminated string pointed to by the
name
field.
-
total_memory
public long total_memory()- Returns:
- the value of the
total_memory
field.
-
attr
- Returns:
- a
hwloc_obj_attr_u
view of the struct pointed to by theattr
field.
-
depth
public int depth()- Returns:
- the value of the
depth
field.
-
logical_index
public int logical_index()- Returns:
- the value of the
logical_index
field.
-
next_cousin
- Returns:
- a
hwloc_obj
view of the struct pointed to by thenext_cousin
field.
-
prev_cousin
- Returns:
- a
hwloc_obj
view of the struct pointed to by theprev_cousin
field.
-
parent
- Returns:
- a
hwloc_obj
view of the struct pointed to by theparent
field.
-
sibling_rank
public int sibling_rank()- Returns:
- the value of the
sibling_rank
field.
-
next_sibling
- Returns:
- a
hwloc_obj
view of the struct pointed to by thenext_sibling
field.
-
prev_sibling
- Returns:
- a
hwloc_obj
view of the struct pointed to by theprev_sibling
field.
-
arity
public int arity()- Returns:
- the value of the
arity
field.
-
children
- Returns:
- a
PointerBuffer
view of the data pointed to by thechildren
field.
-
first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by thefirst_child
field.
-
last_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by thelast_child
field.
-
symmetric_subtree
public boolean symmetric_subtree()- Returns:
- the value of the
symmetric_subtree
field.
-
memory_arity
public int memory_arity()- Returns:
- the value of the
memory_arity
field.
-
memory_first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by thememory_first_child
field.
-
io_arity
public int io_arity()- Returns:
- the value of the
io_arity
field.
-
io_first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by theio_first_child
field.
-
misc_arity
public int misc_arity()- Returns:
- the value of the
misc_arity
field.
-
misc_first_child
- Returns:
- a
hwloc_obj
view of the struct pointed to by themisc_first_child
field.
-
cpuset
public long cpuset()- Returns:
- the value of the
cpuset
field.
-
complete_cpuset
public long complete_cpuset()- Returns:
- the value of the
complete_cpuset
field.
-
nodeset
public long nodeset()- Returns:
- the value of the
nodeset
field.
-
complete_nodeset
public long complete_nodeset()- Returns:
- the value of the
complete_nodeset
field.
-
infos
- Returns:
- a
hwloc_infos_s
view of theinfos
field.
-
userdata
public long userdata()- Returns:
- the value of the
userdata
field.
-
gp_index
public long gp_index()- Returns:
- the value of the
gp_index
field.
-
userdata
Sets the specified value to theuserdata
field.
-