Package org.lwjgl.cuda
Class CUaccessPolicyWindow
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUaccessPolicyWindow>
org.lwjgl.cuda.CUaccessPolicyWindow
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUaccessPolicyWindow
extends org.lwjgl.system.Struct<CUaccessPolicyWindow>
implements org.lwjgl.system.NativeResource
Layout
struct CUaccessPolicyWindow {
void * base_ptr;
size_t num_bytes;
float hitRatio;
CUaccessProperty hitProp;
CUaccessProperty missProp;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUaccessPolicyWindow(ByteBuffer container) Creates aCUaccessPolicyWindowinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongbase_ptr()base_ptr(long value) Sets the specified value to thebase_ptrfield.static CUaccessPolicyWindowcalloc()Returns a newCUaccessPolicyWindowinstance allocated withmemCalloc.static CUaccessPolicyWindow.Buffercalloc(int capacity) Returns a newCUaccessPolicyWindow.Bufferinstance allocated withmemCalloc.static CUaccessPolicyWindow.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUaccessPolicyWindow.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUaccessPolicyWindowcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUaccessPolicyWindowinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUaccessPolicyWindowcreate()Returns a newCUaccessPolicyWindowinstance allocated withBufferUtils.static CUaccessPolicyWindow.Buffercreate(int capacity) Returns a newCUaccessPolicyWindow.Bufferinstance allocated withBufferUtils.static CUaccessPolicyWindowcreate(long address) Returns a newCUaccessPolicyWindowinstance for the specified memory address.static CUaccessPolicyWindow.Buffercreate(long address, int capacity) Create aCUaccessPolicyWindow.Bufferinstance at the specified memory.static @Nullable CUaccessPolicyWindowcreateSafe(long address) static @Nullable CUaccessPolicyWindow.BuffercreateSafe(long address, int capacity) inthitProp()hitProp(int value) Sets the specified value to thehitPropfield.floathitRatio()hitRatio(float value) Sets the specified value to thehitRatiofield.static CUaccessPolicyWindowmalloc()Returns a newCUaccessPolicyWindowinstance allocated withmemAlloc.static CUaccessPolicyWindow.Buffermalloc(int capacity) Returns a newCUaccessPolicyWindow.Bufferinstance allocated withmemAlloc.static CUaccessPolicyWindow.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUaccessPolicyWindow.Bufferinstance allocated on the specifiedMemoryStack.static CUaccessPolicyWindowmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUaccessPolicyWindowinstance allocated on the specifiedMemoryStack.intmissProp()missProp(int value) Sets the specified value to themissPropfield.static longnbase_ptr(long struct) Unsafe version ofbase_ptr().static voidnbase_ptr(long struct, long value) Unsafe version ofbase_ptr.static intnhitProp(long struct) Unsafe version ofhitProp().static voidnhitProp(long struct, int value) Unsafe version ofhitProp.static floatnhitRatio(long struct) Unsafe version ofhitRatio().static voidnhitRatio(long struct, float value) Unsafe version ofhitRatio.static intnmissProp(long struct) Unsafe version ofmissProp().static voidnmissProp(long struct, int value) Unsafe version ofmissProp.static longnnum_bytes(long struct) Unsafe version ofnum_bytes().static voidnnum_bytes(long struct, long value) Unsafe version ofnum_bytes.longnum_bytes(long value) Sets the specified value to thenum_bytesfield.set(long base_ptr, long num_bytes, float hitRatio, int hitProp, int missProp) Initializes this struct with the specified values.set(CUaccessPolicyWindow src) Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.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. -
BASE_PTR
public static final int BASE_PTRThe struct member offsets. -
NUM_BYTES
public static final int NUM_BYTESThe struct member offsets. -
HITRATIO
public static final int HITRATIOThe struct member offsets. -
HITPROP
public static final int HITPROPThe struct member offsets. -
MISSPROP
public static final int MISSPROPThe struct member offsets.
-
-
Constructor Details
-
CUaccessPolicyWindow
Creates aCUaccessPolicyWindowinstance 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<CUaccessPolicyWindow>
-
base_ptr
public long base_ptr()- Returns:
- the value of the
base_ptrfield.
-
num_bytes
public long num_bytes()- Returns:
- the value of the
num_bytesfield.
-
hitRatio
public float hitRatio()- Returns:
- the value of the
hitRatiofield.
-
hitProp
public int hitProp()- Returns:
- the value of the
hitPropfield.
-
missProp
public int missProp()- Returns:
- the value of the
missPropfield.
-
base_ptr
Sets the specified value to thebase_ptrfield. -
num_bytes
Sets the specified value to thenum_bytesfield. -
hitRatio
Sets the specified value to thehitRatiofield. -
hitProp
Sets the specified value to thehitPropfield. -
missProp
Sets the specified value to themissPropfield. -
set
public CUaccessPolicyWindow set(long base_ptr, long num_bytes, float hitRatio, int hitProp, int missProp) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUaccessPolicyWindowinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUaccessPolicyWindowinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUaccessPolicyWindowinstance allocated withBufferUtils. -
create
Returns a newCUaccessPolicyWindowinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUaccessPolicyWindow.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUaccessPolicyWindow.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUaccessPolicyWindow.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUaccessPolicyWindow.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUaccessPolicyWindowinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUaccessPolicyWindowinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUaccessPolicyWindow.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUaccessPolicyWindow.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nbase_ptr
public static long nbase_ptr(long struct) Unsafe version ofbase_ptr(). -
nnum_bytes
public static long nnum_bytes(long struct) Unsafe version ofnum_bytes(). -
nhitRatio
public static float nhitRatio(long struct) Unsafe version ofhitRatio(). -
nhitProp
public static int nhitProp(long struct) Unsafe version ofhitProp(). -
nmissProp
public static int nmissProp(long struct) Unsafe version ofmissProp(). -
nbase_ptr
public static void nbase_ptr(long struct, long value) Unsafe version ofbase_ptr. -
nnum_bytes
public static void nnum_bytes(long struct, long value) Unsafe version ofnum_bytes. -
nhitRatio
public static void nhitRatio(long struct, float value) Unsafe version ofhitRatio. -
nhitProp
public static void nhitProp(long struct, int value) Unsafe version ofhitProp. -
nmissProp
public static void nmissProp(long struct, int value) Unsafe version ofmissProp. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-