Package org.lwjgl.cuda
Class CUIPCEventHandle
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUIPCEventHandle
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUIPCEventHandle extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct CUipcEventHandle { char reserved[CU_IPC_HANDLE_SIZE]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUIPCEventHandle.BufferAn array ofCUIPCEventHandlestructs.
-
Constructor Summary
Constructors Constructor Description CUIPCEventHandle(java.nio.ByteBuffer container)Creates aCUIPCEventHandleinstance 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 CUIPCEventHandlecalloc()Returns a newCUIPCEventHandleinstance allocated withmemCalloc.static CUIPCEventHandle.Buffercalloc(int capacity)Returns a newCUIPCEventHandle.Bufferinstance allocated withmemCalloc.static CUIPCEventHandle.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUIPCEventHandle.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUIPCEventHandlecalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUIPCEventHandleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUIPCEventHandlecallocStack()Deprecated.static CUIPCEventHandle.BuffercallocStack(int capacity)Deprecated.static CUIPCEventHandle.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUIPCEventHandlecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CUIPCEventHandlecreate()Returns a newCUIPCEventHandleinstance allocated withBufferUtils.static CUIPCEventHandle.Buffercreate(int capacity)Returns a newCUIPCEventHandle.Bufferinstance allocated withBufferUtils.static CUIPCEventHandlecreate(long address)Returns a newCUIPCEventHandleinstance for the specified memory address.static CUIPCEventHandle.Buffercreate(long address, int capacity)Create aCUIPCEventHandle.Bufferinstance at the specified memory.static CUIPCEventHandlecreateSafe(long address)static CUIPCEventHandle.BuffercreateSafe(long address, int capacity)static CUIPCEventHandlemalloc()Returns a newCUIPCEventHandleinstance allocated withmemAlloc.static CUIPCEventHandle.Buffermalloc(int capacity)Returns a newCUIPCEventHandle.Bufferinstance allocated withmemAlloc.static CUIPCEventHandle.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUIPCEventHandle.Bufferinstance allocated on the specifiedMemoryStack.static CUIPCEventHandlemalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUIPCEventHandleinstance allocated on the specifiedMemoryStack.static CUIPCEventHandlemallocStack()Deprecated.static CUIPCEventHandle.BuffermallocStack(int capacity)Deprecated.static CUIPCEventHandle.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUIPCEventHandlemallocStack(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)CUIPCEventHandlereserved(int index, byte value)Sets the specified value at the specified index of thereservedfield.CUIPCEventHandlereserved(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thereservedfield.CUIPCEventHandleset(CUIPCEventHandle src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
CUIPCEventHandle
public CUIPCEventHandle(java.nio.ByteBuffer container)
Creates aCUIPCEventHandleinstance 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 CUIPCEventHandle reserved(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thereservedfield.
-
reserved
public CUIPCEventHandle reserved(int index, byte value)
Sets the specified value at the specified index of thereservedfield.
-
set
public CUIPCEventHandle set(CUIPCEventHandle src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUIPCEventHandle malloc()
Returns a newCUIPCEventHandleinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUIPCEventHandle calloc()
Returns a newCUIPCEventHandleinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUIPCEventHandle create()
Returns a newCUIPCEventHandleinstance allocated withBufferUtils.
-
create
public static CUIPCEventHandle create(long address)
Returns a newCUIPCEventHandleinstance for the specified memory address.
-
createSafe
@Nullable public static CUIPCEventHandle createSafe(long address)
-
malloc
public static CUIPCEventHandle.Buffer malloc(int capacity)
Returns a newCUIPCEventHandle.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUIPCEventHandle.Buffer calloc(int capacity)
Returns a newCUIPCEventHandle.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUIPCEventHandle.Buffer create(int capacity)
Returns a newCUIPCEventHandle.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUIPCEventHandle.Buffer create(long address, int capacity)
Create aCUIPCEventHandle.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUIPCEventHandle.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUIPCEventHandle mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUIPCEventHandle callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUIPCEventHandle mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUIPCEventHandle callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUIPCEventHandle.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUIPCEventHandle.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CUIPCEventHandle.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 CUIPCEventHandle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CUIPCEventHandle malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCEventHandleinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUIPCEventHandle calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCEventHandleinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUIPCEventHandle.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCEventHandle.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUIPCEventHandle.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUIPCEventHandle.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.
-
-