Package org.lwjgl.util.hwloc
Class hwloc_obj_attr_u
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
union struct hwloc_obj_attr_u {
{@link hwloc_numanode_attr_s hwloc_numanode_attr_s} numanode;
{@link hwloc_cache_attr_s hwloc_cache_attr_s} cache;
{@link hwloc_group_attr_s hwloc_group_attr_s} group;
{@link hwloc_pcidev_attr_s hwloc_pcidev_attr_s} pcidev;
{@link hwloc_bridge_attr_s hwloc_bridge_attr_s} bridge;
{@link hwloc_osdev_attr_s hwloc_osdev_attr_s} osdev;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionhwloc_obj_attr_u
(ByteBuffer container) Creates ahwloc_obj_attr_u
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbridge()
cache()
static hwloc_obj_attr_u
calloc()
Returns a newhwloc_obj_attr_u
instance allocated withmemCalloc
.static hwloc_obj_attr_u.Buffer
calloc
(int capacity) Returns a newhwloc_obj_attr_u.Buffer
instance allocated withmemCalloc
.static hwloc_obj_attr_u.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newhwloc_obj_attr_u.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static hwloc_obj_attr_u
calloc
(MemoryStack stack) Returns a newhwloc_obj_attr_u
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static hwloc_obj_attr_u
create()
Returns a newhwloc_obj_attr_u
instance allocated withBufferUtils
.static hwloc_obj_attr_u.Buffer
create
(int capacity) Returns a newhwloc_obj_attr_u.Buffer
instance allocated withBufferUtils
.static hwloc_obj_attr_u
create
(long address) Returns a newhwloc_obj_attr_u
instance for the specified memory address.static hwloc_obj_attr_u.Buffer
create
(long address, int capacity) Create ahwloc_obj_attr_u.Buffer
instance at the specified memory.static @Nullable hwloc_obj_attr_u
createSafe
(long address) static @Nullable hwloc_obj_attr_u.Buffer
createSafe
(long address, int capacity) group()
static hwloc_obj_attr_u
malloc()
Returns a newhwloc_obj_attr_u
instance allocated withmemAlloc
.static hwloc_obj_attr_u.Buffer
malloc
(int capacity) Returns a newhwloc_obj_attr_u.Buffer
instance allocated withmemAlloc
.static hwloc_obj_attr_u.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newhwloc_obj_attr_u.Buffer
instance allocated on the specifiedMemoryStack
.static hwloc_obj_attr_u
malloc
(MemoryStack stack) Returns a newhwloc_obj_attr_u
instance allocated on the specifiedMemoryStack
.static hwloc_bridge_attr_s
nbridge
(long struct) Unsafe version ofbridge()
.static hwloc_cache_attr_s
ncache
(long struct) Unsafe version ofcache()
.static hwloc_group_attr_s
ngroup
(long struct) Unsafe version ofgroup()
.static hwloc_numanode_attr_s
nnumanode
(long struct) Unsafe version ofnumanode()
.static hwloc_osdev_attr_s
nosdev
(long struct) Unsafe version ofosdev()
.static hwloc_pcidev_attr_s
npcidev
(long struct) Unsafe version ofpcidev()
.numanode()
osdev()
pcidev()
int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NUMANODE
public static final int NUMANODEThe struct member offsets. -
CACHE
public static final int CACHEThe struct member offsets. -
GROUP
public static final int GROUPThe struct member offsets. -
PCIDEV
public static final int PCIDEVThe struct member offsets. -
BRIDGE
public static final int BRIDGEThe struct member offsets. -
OSDEV
public static final int OSDEVThe struct member offsets.
-
-
Constructor Details
-
hwloc_obj_attr_u
Creates ahwloc_obj_attr_u
instance at the current position of the specifiedByteBuffer
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
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<hwloc_obj_attr_u>
-
numanode
- Returns:
- a
hwloc_numanode_attr_s
view of thenumanode
field.
-
cache
- Returns:
- a
hwloc_cache_attr_s
view of thecache
field.
-
group
- Returns:
- a
hwloc_group_attr_s
view of thegroup
field.
-
pcidev
- Returns:
- a
hwloc_pcidev_attr_s
view of thepcidev
field.
-
bridge
- Returns:
- a
hwloc_bridge_attr_s
view of thebridge
field.
-
osdev
- Returns:
- a
hwloc_osdev_attr_s
view of theosdev
field.
-
malloc
Returns a newhwloc_obj_attr_u
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newhwloc_obj_attr_u
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newhwloc_obj_attr_u
instance allocated withBufferUtils
. -
create
Returns a newhwloc_obj_attr_u
instance for the specified memory address. -
createSafe
-
malloc
Returns a newhwloc_obj_attr_u.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newhwloc_obj_attr_u.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newhwloc_obj_attr_u.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create ahwloc_obj_attr_u.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newhwloc_obj_attr_u
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newhwloc_obj_attr_u
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newhwloc_obj_attr_u.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newhwloc_obj_attr_u.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nnumanode
Unsafe version ofnumanode()
. -
ncache
Unsafe version ofcache()
. -
ngroup
Unsafe version ofgroup()
. -
npcidev
Unsafe version ofpcidev()
. -
nbridge
Unsafe version ofbridge()
. -
nosdev
Unsafe version ofosdev()
.
-