Package org.lwjgl.cuda
Class CUDA_EXTERNAL_MEMORY_BUFFER_DESC
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUDA_EXTERNAL_MEMORY_BUFFER_DESC
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUDA_EXTERNAL_MEMORY_BUFFER_DESC extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUDA_EXTERNAL_MEMORY_BUFFER_DESC.BufferAn array ofCUDA_EXTERNAL_MEMORY_BUFFER_DESCstructs.
-
Constructor Summary
Constructors Constructor Description CUDA_EXTERNAL_MEMORY_BUFFER_DESC(java.nio.ByteBuffer container)Creates aCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CUDA_EXTERNAL_MEMORY_BUFFER_DESCcalloc()Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated withmemCalloc.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffercalloc(int capacity)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated withmemCalloc.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCcallocStack()Deprecated.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.BuffercallocStack(int capacity)Deprecated.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCcreate()Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated withBufferUtils.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffercreate(int capacity)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated withBufferUtils.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCcreate(long address)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance for the specified memory address.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffercreate(long address, int capacity)Create aCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance at the specified memory.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCcreateSafe(long address)static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.BuffercreateSafe(long address, int capacity)intflags()Flags reserved for future use.CUDA_EXTERNAL_MEMORY_BUFFER_DESCflags(int value)Sets the specified value to theflags()field.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCmalloc()Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated withmemAlloc.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffermalloc(int capacity)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated withmemAlloc.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated on the specifiedMemoryStack.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated on the specifiedMemoryStack.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCmallocStack()Deprecated.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.BuffermallocStack(int capacity)Deprecated.static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUDA_EXTERNAL_MEMORY_BUFFER_DESCmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnoffset(long struct)Unsafe version ofoffset().static voidnoffset(long struct, long value)Unsafe version ofoffset.static java.nio.IntBuffernreserved(long struct)Unsafe version ofreserved().static intnreserved(long struct, int index)Unsafe version ofreserved.static voidnreserved(long struct, int index, int value)Unsafe version ofreserved.static voidnreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.static longnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, long value)Unsafe version ofsize.longoffset()Offset into the memory object where the buffer's base isCUDA_EXTERNAL_MEMORY_BUFFER_DESCoffset(long value)Sets the specified value to theoffset()field.java.nio.IntBufferreserved()intreserved(int index)CUDA_EXTERNAL_MEMORY_BUFFER_DESCreserved(int index, int value)Sets the specified value at the specified index of thereservedfield.CUDA_EXTERNAL_MEMORY_BUFFER_DESCreserved(java.nio.IntBuffer value)Copies the specifiedIntBufferto thereservedfield.CUDA_EXTERNAL_MEMORY_BUFFER_DESCset(long offset, long size, int flags, java.nio.IntBuffer reserved)Initializes this struct with the specified values.CUDA_EXTERNAL_MEMORY_BUFFER_DESCset(CUDA_EXTERNAL_MEMORY_BUFFER_DESC src)Copies the specified struct data to this struct.longsize()Size of the bufferCUDA_EXTERNAL_MEMORY_BUFFER_DESCsize(long value)Sets the specified value to thesize()field.intsizeof()
-
-
-
Constructor Detail
-
CUDA_EXTERNAL_MEMORY_BUFFER_DESC
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC(java.nio.ByteBuffer container)
Creates aCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
offset
public long offset()
Offset into the memory object where the buffer's base is
-
size
public long size()
Size of the buffer
-
flags
public int flags()
Flags reserved for future use. Must be zero.
-
reserved
public java.nio.IntBuffer reserved()
- Returns:
- a
IntBufferview of thereservedfield.
-
reserved
public int reserved(int index)
- Returns:
- the value at the specified index of the
reservedfield.
-
offset
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC offset(long value)
Sets the specified value to theoffset()field.
-
size
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC size(long value)
Sets the specified value to thesize()field.
-
flags
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC flags(int value)
Sets the specified value to theflags()field.
-
reserved
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC reserved(java.nio.IntBuffer value)
Copies the specifiedIntBufferto thereservedfield.
-
reserved
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC reserved(int index, int value)
Sets the specified value at the specified index of thereservedfield.
-
set
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC set(long offset, long size, int flags, java.nio.IntBuffer reserved)
Initializes this struct with the specified values.
-
set
public CUDA_EXTERNAL_MEMORY_BUFFER_DESC set(CUDA_EXTERNAL_MEMORY_BUFFER_DESC src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC malloc()
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC calloc()
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC create()
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated withBufferUtils.
-
create
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC create(long address)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance for the specified memory address.
-
createSafe
@Nullable public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC createSafe(long address)
-
malloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer malloc(int capacity)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer calloc(int capacity)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer create(int capacity)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer create(long address, int capacity)
Create aCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESCinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUDA_EXTERNAL_MEMORY_BUFFER_DESC.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
noffset
public static long noffset(long struct)
Unsafe version ofoffset().
-
nsize
public static long nsize(long struct)
Unsafe version ofsize().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nreserved
public static java.nio.IntBuffer nreserved(long struct)
Unsafe version ofreserved().
-
nreserved
public static int nreserved(long struct, int index)Unsafe version ofreserved.
-
noffset
public static void noffset(long struct, long value)Unsafe version ofoffset.
-
nsize
public static void nsize(long struct, long value)Unsafe version ofsize.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nreserved
public static void nreserved(long struct, java.nio.IntBuffer value)Unsafe version ofreserved.
-
nreserved
public static void nreserved(long struct, int index, int value)Unsafe version ofreserved.
-
-