Package org.lwjgl.util.hwloc
Class hwloc_infos_s
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct hwloc_infos_s {
struct hwloc_info_s * array;
unsigned count;
unsigned allocated;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionhwloc_infos_s(ByteBuffer container) Creates ahwloc_infos_sinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescription@Nullable hwloc_info_s.Bufferarray()static hwloc_infos_scalloc()Returns a newhwloc_infos_sinstance allocated withmemCalloc.static hwloc_infos_s.Buffercalloc(int capacity) Returns a newhwloc_infos_s.Bufferinstance allocated withmemCalloc.static hwloc_infos_s.Buffercalloc(int capacity, MemoryStack stack) Returns a newhwloc_infos_s.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static hwloc_infos_scalloc(MemoryStack stack) Returns a newhwloc_infos_sinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcount()static hwloc_infos_screate()Returns a newhwloc_infos_sinstance allocated withBufferUtils.static hwloc_infos_s.Buffercreate(int capacity) Returns a newhwloc_infos_s.Bufferinstance allocated withBufferUtils.static hwloc_infos_screate(long address) Returns a newhwloc_infos_sinstance for the specified memory address.static hwloc_infos_s.Buffercreate(long address, int capacity) Create ahwloc_infos_s.Bufferinstance at the specified memory.static @Nullable hwloc_infos_screateSafe(long address) static @Nullable hwloc_infos_s.BuffercreateSafe(long address, int capacity) static hwloc_infos_smalloc()Returns a newhwloc_infos_sinstance allocated withmemAlloc.static hwloc_infos_s.Buffermalloc(int capacity) Returns a newhwloc_infos_s.Bufferinstance allocated withmemAlloc.static hwloc_infos_s.Buffermalloc(int capacity, MemoryStack stack) Returns a newhwloc_infos_s.Bufferinstance allocated on the specifiedMemoryStack.static hwloc_infos_smalloc(MemoryStack stack) Returns a newhwloc_infos_sinstance allocated on the specifiedMemoryStack.static intnallocated(long struct) static @Nullable hwloc_info_s.Buffernarray(long struct) Unsafe version ofarray().static intncount(long struct) Unsafe version ofcount().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. -
ARRAY
public static final int ARRAYThe struct member offsets. -
COUNT
public static final int COUNTThe struct member offsets. -
ALLOCATED
public static final int ALLOCATEDThe struct member offsets.
-
-
Constructor Details
-
hwloc_infos_s
Creates ahwloc_infos_sinstance 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_infos_s>
-
array
- Returns:
- a
hwloc_info_s.Bufferview of the struct array pointed to by thearrayfield.
-
count
public int count()- Returns:
- the value of the
countfield.
-
malloc
Returns a newhwloc_infos_sinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newhwloc_infos_sinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newhwloc_infos_sinstance allocated withBufferUtils. -
create
Returns a newhwloc_infos_sinstance for the specified memory address. -
createSafe
-
malloc
Returns a newhwloc_infos_s.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newhwloc_infos_s.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newhwloc_infos_s.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create ahwloc_infos_s.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newhwloc_infos_sinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newhwloc_infos_sinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newhwloc_infos_s.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newhwloc_infos_s.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
narray
Unsafe version ofarray(). -
ncount
public static int ncount(long struct) Unsafe version ofcount(). -
nallocated
public static int nallocated(long struct)
-