Package org.lwjgl.cuda
Class CUmulticastObjectProp
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUmulticastObjectProp>
org.lwjgl.cuda.CUmulticastObjectProp
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUmulticastObjectProp
extends org.lwjgl.system.Struct<CUmulticastObjectProp>
implements org.lwjgl.system.NativeResource
Layout
struct CUmulticastObjectProp {
unsigned int numDevices;
size_t size;
unsigned long long handleTypes;
unsigned long long flags;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUmulticastObjectProp(ByteBuffer container) Creates aCUmulticastObjectPropinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUmulticastObjectPropcalloc()Returns a newCUmulticastObjectPropinstance allocated withmemCalloc.static CUmulticastObjectProp.Buffercalloc(int capacity) Returns a newCUmulticastObjectProp.Bufferinstance allocated withmemCalloc.static CUmulticastObjectProp.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUmulticastObjectProp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUmulticastObjectPropcalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUmulticastObjectPropinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUmulticastObjectPropcreate()Returns a newCUmulticastObjectPropinstance allocated withBufferUtils.static CUmulticastObjectProp.Buffercreate(int capacity) Returns a newCUmulticastObjectProp.Bufferinstance allocated withBufferUtils.static CUmulticastObjectPropcreate(long address) Returns a newCUmulticastObjectPropinstance for the specified memory address.static CUmulticastObjectProp.Buffercreate(long address, int capacity) Create aCUmulticastObjectProp.Bufferinstance at the specified memory.static @Nullable CUmulticastObjectPropcreateSafe(long address) static @Nullable CUmulticastObjectProp.BuffercreateSafe(long address, int capacity) longflags()flags(long value) Sets the specified value to theflagsfield.longhandleTypes(long value) Sets the specified value to thehandleTypesfield.static CUmulticastObjectPropmalloc()Returns a newCUmulticastObjectPropinstance allocated withmemAlloc.static CUmulticastObjectProp.Buffermalloc(int capacity) Returns a newCUmulticastObjectProp.Bufferinstance allocated withmemAlloc.static CUmulticastObjectProp.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUmulticastObjectProp.Bufferinstance allocated on the specifiedMemoryStack.static CUmulticastObjectPropmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUmulticastObjectPropinstance allocated on the specifiedMemoryStack.static longnflags(long struct) Unsafe version offlags().static voidnflags(long struct, long value) Unsafe version offlags.static longnhandleTypes(long struct) Unsafe version ofhandleTypes().static voidnhandleTypes(long struct, long value) Unsafe version ofhandleTypes.static intnnumDevices(long struct) Unsafe version ofnumDevices().static voidnnumDevices(long struct, int value) Unsafe version ofnumDevices.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.intnumDevices(int value) Sets the specified value to thenumDevicesfield.set(int numDevices, long size, long handleTypes, long flags) Initializes this struct with the specified values.set(CUmulticastObjectProp src) Copies the specified struct data to this struct.longsize()size(long value) Sets the specified value to thesizefield.intsizeof()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. -
NUMDEVICES
public static final int NUMDEVICESThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
HANDLETYPES
public static final int HANDLETYPESThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
CUmulticastObjectProp
Creates aCUmulticastObjectPropinstance 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<CUmulticastObjectProp>
-
numDevices
public int numDevices()- Returns:
- the value of the
numDevicesfield.
-
size
public long size()- Returns:
- the value of the
sizefield.
-
handleTypes
public long handleTypes()- Returns:
- the value of the
handleTypesfield.
-
flags
public long flags()- Returns:
- the value of the
flagsfield.
-
numDevices
Sets the specified value to thenumDevicesfield. -
size
Sets the specified value to thesizefield. -
handleTypes
Sets the specified value to thehandleTypesfield. -
flags
Sets the specified value to theflagsfield. -
set
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 newCUmulticastObjectPropinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUmulticastObjectPropinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUmulticastObjectPropinstance allocated withBufferUtils. -
create
Returns a newCUmulticastObjectPropinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUmulticastObjectProp.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUmulticastObjectProp.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUmulticastObjectProp.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUmulticastObjectProp.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUmulticastObjectPropinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUmulticastObjectPropinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUmulticastObjectProp.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUmulticastObjectProp.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnumDevices
public static int nnumDevices(long struct) Unsafe version ofnumDevices(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
nhandleTypes
public static long nhandleTypes(long struct) Unsafe version ofhandleTypes(). -
nflags
public static long nflags(long struct) Unsafe version offlags(). -
nnumDevices
public static void nnumDevices(long struct, int value) Unsafe version ofnumDevices. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize. -
nhandleTypes
public static void nhandleTypes(long struct, long value) Unsafe version ofhandleTypes. -
nflags
public static void nflags(long struct, long value) Unsafe version offlags.
-