Package org.lwjgl.util.hwloc
Class hwloc_obj_attr_u
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
union struct hwloc_obj_attr_u {
hwloc_numanode_attr_s numanode;
hwloc_cache_attr_s cache;
hwloc_group_attr_s group;
hwloc_pcidev_attr_s pcidev;
hwloc_bridge_attr_s bridge;
hwloc_osdev_attr_s osdev;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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_uinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbridge()cache()static hwloc_obj_attr_ucalloc()Returns a newhwloc_obj_attr_uinstance allocated withmemCalloc.static hwloc_obj_attr_u.Buffercalloc(int capacity) Returns a newhwloc_obj_attr_u.Bufferinstance allocated withmemCalloc.static hwloc_obj_attr_u.Buffercalloc(int capacity, MemoryStack stack) Returns a newhwloc_obj_attr_u.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static hwloc_obj_attr_ucalloc(MemoryStack stack) Returns a newhwloc_obj_attr_uinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static hwloc_obj_attr_ucreate()Returns a newhwloc_obj_attr_uinstance allocated withBufferUtils.static hwloc_obj_attr_u.Buffercreate(int capacity) Returns a newhwloc_obj_attr_u.Bufferinstance allocated withBufferUtils.static hwloc_obj_attr_ucreate(long address) Returns a newhwloc_obj_attr_uinstance for the specified memory address.static hwloc_obj_attr_u.Buffercreate(long address, int capacity) Create ahwloc_obj_attr_u.Bufferinstance at the specified memory.static @Nullable hwloc_obj_attr_ucreateSafe(long address) static @Nullable hwloc_obj_attr_u.BuffercreateSafe(long address, int capacity) group()static hwloc_obj_attr_umalloc()Returns a newhwloc_obj_attr_uinstance allocated withmemAlloc.static hwloc_obj_attr_u.Buffermalloc(int capacity) Returns a newhwloc_obj_attr_u.Bufferinstance allocated withmemAlloc.static hwloc_obj_attr_u.Buffermalloc(int capacity, MemoryStack stack) Returns a newhwloc_obj_attr_u.Bufferinstance allocated on the specifiedMemoryStack.static hwloc_obj_attr_umalloc(MemoryStack stack) Returns a newhwloc_obj_attr_uinstance allocated on the specifiedMemoryStack.static hwloc_bridge_attr_snbridge(long struct) Unsafe version ofbridge().static hwloc_cache_attr_sncache(long struct) Unsafe version ofcache().static hwloc_group_attr_sngroup(long struct) Unsafe version ofgroup().static hwloc_numanode_attr_snnumanode(long struct) Unsafe version ofnumanode().static hwloc_osdev_attr_snosdev(long struct) Unsafe version ofosdev().static hwloc_pcidev_attr_snpcidev(long struct) Unsafe version ofpcidev().numanode()osdev()pcidev()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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_uinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<hwloc_obj_attr_u>
-
numanode
- Returns:
- a
hwloc_numanode_attr_sview of thenumanodefield.
-
cache
- Returns:
- a
hwloc_cache_attr_sview of thecachefield.
-
group
- Returns:
- a
hwloc_group_attr_sview of thegroupfield.
-
pcidev
- Returns:
- a
hwloc_pcidev_attr_sview of thepcidevfield.
-
bridge
- Returns:
- a
hwloc_bridge_attr_sview of thebridgefield.
-
osdev
- Returns:
- a
hwloc_osdev_attr_sview of theosdevfield.
-
malloc
Returns a newhwloc_obj_attr_uinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newhwloc_obj_attr_uinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newhwloc_obj_attr_uinstance allocated withBufferUtils. -
create
Returns a newhwloc_obj_attr_uinstance for the specified memory address. -
createSafe
-
malloc
Returns a newhwloc_obj_attr_u.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newhwloc_obj_attr_u.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newhwloc_obj_attr_u.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create ahwloc_obj_attr_u.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newhwloc_obj_attr_uinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newhwloc_obj_attr_uinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newhwloc_obj_attr_u.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newhwloc_obj_attr_u.Bufferinstance allocated on the specifiedMemoryStackand 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().
-