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.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.static final intThe 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_sinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic hwloc_group_attr_screate(long address) Returns a newhwloc_group_attr_sinstance for the specified memory address.static hwloc_group_attr_s.Buffercreate(long address, int capacity) Create ahwloc_group_attr_s.Bufferinstance at the specified memory.static @Nullable hwloc_group_attr_screateSafe(long address) static @Nullable hwloc_group_attr_s.BuffercreateSafe(long address, int capacity) intdepth()booleanintkind()static intndepth(long struct) Unsafe version ofdepth().static booleanndont_merge(long struct) Unsafe version ofdont_merge().static intnkind(long struct) Unsafe version ofkind().static intnsubkind(long struct) Unsafe version ofsubkind().intsizeof()Returnssizeof(struct).intsubkind()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_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_group_attr_s>
-
depth
public int depth()- Returns:
- the value of the
depthfield.
-
kind
public int kind()- Returns:
- the value of the
kindfield.
-
subkind
public int subkind()- Returns:
- the value of the
subkindfield.
-
dont_merge
public boolean dont_merge()- Returns:
- the value of the
dont_mergefield.
-
create
Returns a newhwloc_group_attr_sinstance for the specified memory address. -
createSafe
-
create
Create ahwloc_group_attr_s.Bufferinstance 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().
-