Package org.lwjgl.cuda
Class CUmemPoolPtrExportData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUmemPoolPtrExportData
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUmemPoolPtrExportData extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceOpaque data for exporting a pool allocation.Layout
struct CUmemPoolPtrExportData { unsigned char reserved[64]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUmemPoolPtrExportData.BufferAn array ofCUmemPoolPtrExportDatastructs.
-
Constructor Summary
Constructors Constructor Description CUmemPoolPtrExportData(java.nio.ByteBuffer container)Creates aCUmemPoolPtrExportDatainstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CUmemPoolPtrExportDatacalloc()Returns a newCUmemPoolPtrExportDatainstance allocated withmemCalloc.static CUmemPoolPtrExportData.Buffercalloc(int capacity)Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemCalloc.static CUmemPoolPtrExportData.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUmemPoolPtrExportData.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUmemPoolPtrExportDatacalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUmemPoolPtrExportDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUmemPoolPtrExportDatacreate()Returns a newCUmemPoolPtrExportDatainstance allocated withBufferUtils.static CUmemPoolPtrExportData.Buffercreate(int capacity)Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withBufferUtils.static CUmemPoolPtrExportDatacreate(long address)Returns a newCUmemPoolPtrExportDatainstance for the specified memory address.static CUmemPoolPtrExportData.Buffercreate(long address, int capacity)Create aCUmemPoolPtrExportData.Bufferinstance at the specified memory.static CUmemPoolPtrExportDatacreateSafe(long address)static CUmemPoolPtrExportData.BuffercreateSafe(long address, int capacity)static CUmemPoolPtrExportDatamalloc()Returns a newCUmemPoolPtrExportDatainstance allocated withmemAlloc.static CUmemPoolPtrExportData.Buffermalloc(int capacity)Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemAlloc.static CUmemPoolPtrExportData.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUmemPoolPtrExportData.Bufferinstance allocated on the specifiedMemoryStack.static CUmemPoolPtrExportDatamalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUmemPoolPtrExportDatainstance allocated on the specifiedMemoryStack.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)CUmemPoolPtrExportDatareserved(int index, byte value)Sets the specified value at the specified index of thereservedfield.CUmemPoolPtrExportDatareserved(java.nio.ByteBuffer value)Copies the specifiedByteBufferto thereservedfield.CUmemPoolPtrExportDataset(CUmemPoolPtrExportData src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
CUmemPoolPtrExportData
public CUmemPoolPtrExportData(java.nio.ByteBuffer container)
Creates aCUmemPoolPtrExportDatainstance 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 CUmemPoolPtrExportData reserved(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thereservedfield.
-
reserved
public CUmemPoolPtrExportData reserved(int index, byte value)
Sets the specified value at the specified index of thereservedfield.
-
set
public CUmemPoolPtrExportData set(CUmemPoolPtrExportData src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUmemPoolPtrExportData malloc()
Returns a newCUmemPoolPtrExportDatainstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUmemPoolPtrExportData calloc()
Returns a newCUmemPoolPtrExportDatainstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUmemPoolPtrExportData create()
Returns a newCUmemPoolPtrExportDatainstance allocated withBufferUtils.
-
create
public static CUmemPoolPtrExportData create(long address)
Returns a newCUmemPoolPtrExportDatainstance for the specified memory address.
-
createSafe
@Nullable public static CUmemPoolPtrExportData createSafe(long address)
-
malloc
public static CUmemPoolPtrExportData.Buffer malloc(int capacity)
Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUmemPoolPtrExportData.Buffer calloc(int capacity)
Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUmemPoolPtrExportData.Buffer create(int capacity)
Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUmemPoolPtrExportData.Buffer create(long address, int capacity)
Create aCUmemPoolPtrExportData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUmemPoolPtrExportData.Buffer createSafe(long address, int capacity)
-
malloc
public static CUmemPoolPtrExportData malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUmemPoolPtrExportDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUmemPoolPtrExportData calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUmemPoolPtrExportDatainstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUmemPoolPtrExportData.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUmemPoolPtrExportData.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUmemPoolPtrExportData.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUmemPoolPtrExportData.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.
-
-