Class hwloc_numanode_attr_s
- All Implemented Interfaces:
Pointer
struct hwloc_numanode_attr_s {
hwloc_uint64_t local_memory;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionhwloc_numanode_attr_s(ByteBuffer container) Creates ahwloc_numanode_attr_sinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic hwloc_numanode_attr_screate(long address) Returns a newhwloc_numanode_attr_sinstance for the specified memory address.static hwloc_numanode_attr_s.Buffercreate(long address, int capacity) Create ahwloc_numanode_attr_s.Bufferinstance at the specified memory.static @Nullable hwloc_numanode_attr_screateSafe(long address) static @Nullable hwloc_numanode_attr_s.BuffercreateSafe(long address, int capacity) longstatic longnlocal_memory(long struct) Unsafe version oflocal_memory().intsizeof()Returnssizeof(struct).Methods inherited from class 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. -
LOCAL_MEMORY
public static final int LOCAL_MEMORYThe struct member offsets.
-
-
Constructor Details
-
hwloc_numanode_attr_s
Creates ahwloc_numanode_attr_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_numanode_attr_s>
-
local_memory
- Returns:
- the value of the
local_memoryfield.
-
create
Returns a newhwloc_numanode_attr_sinstance for the specified memory address. -
createSafe
-
create
Create ahwloc_numanode_attr_s.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nlocal_memory
public static long nlocal_memory(long struct) Unsafe version oflocal_memory().
-