Package org.lwjgl.util.hwloc
Class hwloc_location_u
- All Implemented Interfaces:
Pointer
union hwloc_location_u {
hwloc_cpuset_t cpuset;
hwloc_obj_t object;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionhwloc_location_u(ByteBuffer container) Creates ahwloc_location_uinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongcpuset()static hwloc_location_ucreate(long address) Returns a newhwloc_location_uinstance for the specified memory address.static hwloc_location_u.Buffercreate(long address, int capacity) Create ahwloc_location_u.Bufferinstance at the specified memory.static @Nullable hwloc_location_ucreateSafe(long address) static @Nullable hwloc_location_u.BuffercreateSafe(long address, int capacity) static longncpuset(long struct) Unsafe version ofcpuset().static hwloc_objnobject(long struct) Unsafe version ofobject().object()intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CPUSET
public static final int CPUSETThe struct member offsets. -
OBJECT
public static final int OBJECTThe struct member offsets.
-
-
Constructor Details
-
hwloc_location_u
Creates ahwloc_location_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_location_u>
-
cpuset
public long cpuset()- Returns:
- the value of the
cpusetfield.
-
object
- Returns:
- a
hwloc_objview of the struct pointed to by theobjectfield.
-
create
Returns a newhwloc_location_uinstance for the specified memory address. -
createSafe
-
create
Create ahwloc_location_u.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
ncpuset
public static long ncpuset(long struct) Unsafe version ofcpuset(). -
nobject
Unsafe version ofobject().
-