Package org.lwjgl.cuda
Class CUexecAffinitySmCount
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUexecAffinitySmCount>
org.lwjgl.cuda.CUexecAffinitySmCount
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUexecAffinitySmCount
extends org.lwjgl.system.Struct<CUexecAffinitySmCount>
implements org.lwjgl.system.NativeResource
Layout
struct CUexecAffinitySmCount {
unsigned int val;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.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
ConstructorsConstructorDescriptionCUexecAffinitySmCount(ByteBuffer container) Creates aCUexecAffinitySmCountinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUexecAffinitySmCountcalloc()Returns a newCUexecAffinitySmCountinstance allocated withmemCalloc.static CUexecAffinitySmCount.Buffercalloc(int capacity) Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemCalloc.static CUexecAffinitySmCount.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUexecAffinitySmCountcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUexecAffinitySmCountcreate()Returns a newCUexecAffinitySmCountinstance allocated withBufferUtils.static CUexecAffinitySmCount.Buffercreate(int capacity) Returns a newCUexecAffinitySmCount.Bufferinstance allocated withBufferUtils.static CUexecAffinitySmCountcreate(long address) Returns a newCUexecAffinitySmCountinstance for the specified memory address.static CUexecAffinitySmCount.Buffercreate(long address, int capacity) Create aCUexecAffinitySmCount.Bufferinstance at the specified memory.static @Nullable CUexecAffinitySmCountcreateSafe(long address) static @Nullable CUexecAffinitySmCount.BuffercreateSafe(long address, int capacity) static CUexecAffinitySmCountmalloc()Returns a newCUexecAffinitySmCountinstance allocated withmemAlloc.static CUexecAffinitySmCount.Buffermalloc(int capacity) Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemAlloc.static CUexecAffinitySmCount.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStack.static CUexecAffinitySmCountmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStack.static intnval(long struct) Unsafe version ofval().static voidnval(long struct, int value) Unsafe version ofval.set(CUexecAffinitySmCount src) Copies the specified struct data to this struct.intsizeof()intval()val(int value) Sets the specified value to thevalfield.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
VAL
public static final int VALThe struct member offsets.
-
-
Constructor Details
-
CUexecAffinitySmCount
Creates aCUexecAffinitySmCountinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUexecAffinitySmCount>
-
val
public int val()- Returns:
- the value of the
valfield.
-
val
Sets the specified value to thevalfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUexecAffinitySmCountinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUexecAffinitySmCountinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUexecAffinitySmCountinstance allocated withBufferUtils. -
create
Returns a newCUexecAffinitySmCountinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUexecAffinitySmCount.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUexecAffinitySmCount.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nval
public static int nval(long struct) Unsafe version ofval(). -
nval
public static void nval(long struct, int value) Unsafe version ofval.
-