Package org.lwjgl.cuda
Class CUmemPoolPtrExportData
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUmemPoolPtrExportData>
org.lwjgl.cuda.CUmemPoolPtrExportData
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUmemPoolPtrExportData
extends org.lwjgl.system.Struct<CUmemPoolPtrExportData>
implements org.lwjgl.system.NativeResource
Layout
struct CUmemPoolPtrExportData {
unsigned char reserved[64];
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUmemPoolPtrExportData(ByteBuffer container) Creates aCUmemPoolPtrExportDatainstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUmemPoolPtrExportDatacalloc()Returns a newCUmemPoolPtrExportDatainstance allocated withmemCalloc.calloc(int capacity) Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemCalloc.calloc(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.create(int capacity) Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withBufferUtils.static CUmemPoolPtrExportDatacreate(long address) Returns a newCUmemPoolPtrExportDatainstance for the specified memory address.create(long address, int capacity) Create aCUmemPoolPtrExportData.Bufferinstance at the specified memory.static @Nullable CUmemPoolPtrExportDatacreateSafe(long address) static @Nullable CUmemPoolPtrExportData.BuffercreateSafe(long address, int capacity) static CUmemPoolPtrExportDatamalloc()Returns a newCUmemPoolPtrExportDatainstance allocated withmemAlloc.malloc(int capacity) Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemAlloc.malloc(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 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, ByteBuffer value) Unsafe version ofreserved.reserved()bytereserved(int index) reserved(int index, byte value) Sets the specified value at the specified index of thereservedfield.reserved(ByteBuffer value) Copies the specifiedByteBufferto thereservedfield.Copies the specified struct data to this struct.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. -
RESERVED
public static final int RESERVEDThe struct member offsets.
-
-
Constructor Details
-
CUmemPoolPtrExportData
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUmemPoolPtrExportData>
-
reserved
- Returns:
- a
ByteBufferview of thereservedfield.
-
reserved
public byte reserved(int index) - Returns:
- the value at the specified index of the
reservedfield.
-
reserved
Copies the specifiedByteBufferto thereservedfield. -
reserved
Sets the specified value at the specified index of thereservedfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUmemPoolPtrExportDatainstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUmemPoolPtrExportDatainstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUmemPoolPtrExportDatainstance allocated withBufferUtils. -
create
Returns a newCUmemPoolPtrExportDatainstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUmemPoolPtrExportData.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUmemPoolPtrExportData.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUmemPoolPtrExportDatainstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
nreserved
Unsafe version ofreserved(). -
nreserved
public static byte nreserved(long struct, int index) Unsafe version ofreserved. -
nreserved
Unsafe version ofreserved. -
nreserved
public static void nreserved(long struct, int index, byte value) Unsafe version ofreserved.
-