Package org.lwjgl.cuda
Class CUIPCMemHandle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUIPCMemHandle
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUIPCMemHandle extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct CUipcMemHandle { char reserved[CU_IPC_HANDLE_SIZE]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUIPCMemHandle.BufferAn array ofCUIPCMemHandlestructs.
-
Constructor Summary
Constructors Constructor Description CUIPCMemHandle(java.nio.ByteBuffer container)Creates aCUIPCMemHandleinstance 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 CUIPCMemHandlecalloc()Returns a newCUIPCMemHandleinstance allocated withmemCalloc.static CUIPCMemHandle.Buffercalloc(int capacity)Returns a newCUIPCMemHandle.Bufferinstance allocated withmemCalloc.static CUIPCMemHandle.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUIPCMemHandle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUIPCMemHandlecalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUIPCMemHandleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUIPCMemHandlecallocStack()Deprecated.static CUIPCMemHandle.BuffercallocStack(int capacity)Deprecated.static CUIPCMemHandle.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUIPCMemHandlecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CUIPCMemHandlecreate()Returns a newCUIPCMemHandleinstance allocated withBufferUtils.static CUIPCMemHandle.Buffercreate(int capacity)Returns a newCUIPCMemHandle.Bufferinstance allocated withBufferUtils.static CUIPCMemHandlecreate(long address)Returns a newCUIPCMemHandleinstance for the specified memory address.static CUIPCMemHandle.Buffercreate(long address, int capacity)Create aCUIPCMemHandle.Bufferinstance at the specified memory.static CUIPCMemHandlecreateSafe(long address)static CUIPCMemHandle.BuffercreateSafe(long address, int capacity)static CUIPCMemHandlemalloc()Returns a newCUIPCMemHandleinstance allocated withmemAlloc.static CUIPCMemHandle.Buffermalloc(int capacity)Returns a newCUIPCMemHandle.Bufferinstance allocated withmemAlloc.static CUIPCMemHandle.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUIPCMemHandle.Bufferinstance allocated on the specifiedMemoryStack.static CUIPCMemHandlemalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUIPCMemHandleinstance allocated on the specifiedMemoryStack.static CUIPCMemHandlemallocStack()Deprecated.static CUIPCMemHandle.BuffermallocStack(int capacity)Deprecated.static CUIPCMemHandle.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUIPCMemHandlemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.ByteBuffernreserved(long struct)Unsafe version ofreserved().static bytenreserved(long struct, int index)Unsafe version ofreserved.static voidnreserved(long struct, int index, byte value)Unsafe version ofreserved.static voidnreserved(long struct, java.nio.ByteBuffer value)Unsafe version ofreserved.java.nio.ByteBufferreserved()bytereserved(int index)CUIPCMemHandlereserved(int index, byte value)Sets the specified value at the specified index of thereservedfield.CUIPCMemHandlereserved(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thereservedfield.CUIPCMemHandleset(CUIPCMemHandle src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
CUIPCMemHandle
public CUIPCMemHandle(java.nio.ByteBuffer container)
Creates aCUIPCMemHandleinstance 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
-
reserved
public java.nio.ByteBuffer reserved()
- Returns:
- a
ByteBufferview of thereservedfield.
-
reserved
public byte reserved(int index)
- Returns:
- the value at the specified index of the
reservedfield.
-
reserved
public CUIPCMemHandle reserved(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thereservedfield.
-
reserved
public CUIPCMemHandle reserved(int index, byte value)
Sets the specified value at the specified index of thereservedfield.
-
set
public CUIPCMemHandle set(CUIPCMemHandle src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUIPCMemHandle malloc()
Returns a newCUIPCMemHandleinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUIPCMemHandle calloc()
Returns a newCUIPCMemHandleinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUIPCMemHandle create()
Returns a newCUIPCMemHandleinstance allocated withBufferUtils.
-
create
public static CUIPCMemHandle create(long address)
Returns a newCUIPCMemHandleinstance for the specified memory address.
-
createSafe
@Nullable public static CUIPCMemHandle createSafe(long address)
-
malloc
public static CUIPCMemHandle.Buffer malloc(int capacity)
Returns a newCUIPCMemHandle.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUIPCMemHandle.Buffer calloc(int capacity)
Returns a newCUIPCMemHandle.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUIPCMemHandle.Buffer create(int capacity)
Returns a newCUIPCMemHandle.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUIPCMemHandle.Buffer create(long address, int capacity)
Create aCUIPCMemHandle.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUIPCMemHandle.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUIPCMemHandle mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUIPCMemHandle callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUIPCMemHandle mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUIPCMemHandle callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUIPCMemHandle.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUIPCMemHandle.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CUIPCMemHandle.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 CUIPCMemHandle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CUIPCMemHandle malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCMemHandleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUIPCMemHandle calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCMemHandleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUIPCMemHandle.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCMemHandle.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUIPCMemHandle.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCMemHandle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nreserved
public static java.nio.ByteBuffer nreserved(long struct)
Unsafe version ofreserved().
-
nreserved
public static byte nreserved(long struct, int index)Unsafe version ofreserved.
-
nreserved
public static void nreserved(long struct, java.nio.ByteBuffer value)Unsafe version ofreserved.
-
nreserved
public static void nreserved(long struct, int index, byte value)Unsafe version ofreserved.
-
-