Package org.lwjgl.util.hwloc
Class hwloc_group_attr_s
- All Implemented Interfaces:
Pointer
struct hwloc_group_attr_s {
unsigned depth;
unsigned kind;
unsigned subkind;
unsigned char dont_merge;
}
-
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 size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionhwloc_group_attr_s
(ByteBuffer container) Creates ahwloc_group_attr_s
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic hwloc_group_attr_s
create
(long address) Returns a newhwloc_group_attr_s
instance for the specified memory address.static hwloc_group_attr_s.Buffer
create
(long address, int capacity) Create ahwloc_group_attr_s.Buffer
instance at the specified memory.static @Nullable hwloc_group_attr_s
createSafe
(long address) static @Nullable hwloc_group_attr_s.Buffer
createSafe
(long address, int capacity) int
depth()
boolean
int
kind()
static int
ndepth
(long struct) Unsafe version ofdepth()
.static boolean
ndont_merge
(long struct) Unsafe version ofdont_merge()
.static int
nkind
(long struct) Unsafe version ofkind()
.static int
nsubkind
(long struct) Unsafe version ofsubkind()
.int
sizeof()
Returnssizeof(struct)
.int
subkind()
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. -
DEPTH
public static final int DEPTHThe struct member offsets. -
KIND
public static final int KINDThe struct member offsets. -
SUBKIND
public static final int SUBKINDThe struct member offsets. -
DONT_MERGE
public static final int DONT_MERGEThe struct member offsets.
-
-
Constructor Details
-
hwloc_group_attr_s
Creates ahwloc_group_attr_s
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_group_attr_s>
-
depth
public int depth()- Returns:
- the value of the
depth
field.
-
kind
public int kind()- Returns:
- the value of the
kind
field.
-
subkind
public int subkind()- Returns:
- the value of the
subkind
field.
-
dont_merge
public boolean dont_merge()- Returns:
- the value of the
dont_merge
field.
-
create
Returns a newhwloc_group_attr_s
instance for the specified memory address. -
createSafe
-
create
Create ahwloc_group_attr_s.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ndepth
public static int ndepth(long struct) Unsafe version ofdepth()
. -
nkind
public static int nkind(long struct) Unsafe version ofkind()
. -
nsubkind
public static int nsubkind(long struct) Unsafe version ofsubkind()
. -
ndont_merge
public static boolean ndont_merge(long struct) Unsafe version ofdont_merge()
.
-