Package org.lwjgl.cuda
Class CUasyncNotificationInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUasyncNotificationInfo>
org.lwjgl.cuda.CUasyncNotificationInfo
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUasyncNotificationInfo
extends org.lwjgl.system.Struct<CUasyncNotificationInfo>
implements org.lwjgl.system.NativeResource
Layout
struct CUasyncNotificationInfo {
CUasyncNotificationType type;
union {
struct {
unsigned long long bytesOverBudget;
} overBudget;
} info;
}-
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 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
ConstructorsConstructorDescriptionCUasyncNotificationInfo(ByteBuffer container) Creates aCUasyncNotificationInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUasyncNotificationInfocalloc()Returns a newCUasyncNotificationInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUasyncNotificationInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUasyncNotificationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUasyncNotificationInfocalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUasyncNotificationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUasyncNotificationInfocreate()Returns a newCUasyncNotificationInfoinstance allocated withBufferUtils.create(int capacity) Returns a newCUasyncNotificationInfo.Bufferinstance allocated withBufferUtils.static CUasyncNotificationInfocreate(long address) Returns a newCUasyncNotificationInfoinstance for the specified memory address.create(long address, int capacity) Create aCUasyncNotificationInfo.Bufferinstance at the specified memory.static @Nullable CUasyncNotificationInfocreateSafe(long address) static @Nullable CUasyncNotificationInfo.BuffercreateSafe(long address, int capacity) longinfo_overBudget_bytesOverBudget(long value) Sets the specified value to thebytesOverBudgetfield.static CUasyncNotificationInfomalloc()Returns a newCUasyncNotificationInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUasyncNotificationInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUasyncNotificationInfo.Bufferinstance allocated on the specifiedMemoryStack.static CUasyncNotificationInfomalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUasyncNotificationInfoinstance allocated on the specifiedMemoryStack.static longninfo_overBudget_bytesOverBudget(long struct) Unsafe version ofinfo_overBudget_bytesOverBudget().static voidninfo_overBudget_bytesOverBudget(long struct, long value) Unsafe version ofinfo_overBudget_bytesOverBudget.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.Copies the specified struct data to this struct.intsizeof()inttype()type(int value) Sets the specified value to thetypefield.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. -
TYPE
public static final int TYPEThe struct member offsets. -
INFO
public static final int INFOThe struct member offsets. -
INFO_OVERBUDGET
public static final int INFO_OVERBUDGETThe struct member offsets. -
INFO_OVERBUDGET_BYTESOVERBUDGET
public static final int INFO_OVERBUDGET_BYTESOVERBUDGETThe struct member offsets.
-
-
Constructor Details
-
CUasyncNotificationInfo
Creates aCUasyncNotificationInfoinstance 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<CUasyncNotificationInfo>
-
type
public int type()- Returns:
- the value of the
typefield.
-
info_overBudget_bytesOverBudget
public long info_overBudget_bytesOverBudget()- Returns:
- the value of the
info.overBudget.bytesOverBudgetfield.
-
type
Sets the specified value to thetypefield. -
info_overBudget_bytesOverBudget
Sets the specified value to thebytesOverBudgetfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUasyncNotificationInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUasyncNotificationInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUasyncNotificationInfoinstance allocated withBufferUtils. -
create
Returns a newCUasyncNotificationInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUasyncNotificationInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUasyncNotificationInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUasyncNotificationInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUasyncNotificationInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUasyncNotificationInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUasyncNotificationInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUasyncNotificationInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUasyncNotificationInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUasyncNotificationInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUasyncNotificationInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
ninfo_overBudget_bytesOverBudget
public static long ninfo_overBudget_bytesOverBudget(long struct) Unsafe version ofinfo_overBudget_bytesOverBudget(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
ninfo_overBudget_bytesOverBudget
public static void ninfo_overBudget_bytesOverBudget(long struct, long value) Unsafe version ofinfo_overBudget_bytesOverBudget.
-