Package org.lwjgl.cuda
Class CUmemAllocationProp.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<CUmemAllocationProp.Buffer>
org.lwjgl.system.StructBuffer<CUmemAllocationProp,CUmemAllocationProp.Buffer>
org.lwjgl.cuda.CUmemAllocationProp.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<CUmemAllocationProp>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
CUmemAllocationProp
public static class CUmemAllocationProp.Buffer
extends org.lwjgl.system.StructBuffer<CUmemAllocationProp,CUmemAllocationProp.Buffer>
implements org.lwjgl.system.NativeResource
An array of
CUmemAllocationProp structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newCUmemAllocationProp.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionbyteallocFlags_compressionType(byte value) Sets the specified value to thecompressionTypefield.byteallocFlags_gpuDirectRDMACapable(byte value) Sets the specified value to thegpuDirectRDMACapablefield.byteallocFlags_reserved(int index) allocFlags_reserved(int index, byte value) Sets the specified value at the specified index of thereservedfield.allocFlags_reserved(ByteBuffer value) Copies the specifiedByteBufferto thereservedfield.shortallocFlags_usage(short value) Sets the specified value to theusagefield.location()location(Consumer<CUmemLocation> consumer) Passes thelocationfield to the specifiedConsumer.location(CUmemLocation value) Copies the specifiedCUmemLocationto thelocationfield.intrequestedHandleTypes(int value) Sets the specified value to therequestedHandleTypesfield.inttype()type(int value) Sets the specified value to thetypefield.longwin32HandleMetaData(long value) Sets the specified value to thewin32HandleMetaDatafield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newCUmemAllocationProp.Bufferinstance backed by the specified container.Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by
CUmemAllocationProp.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Details
-
type
public int type()- Returns:
- the value of the
typefield.
-
requestedHandleTypes
public int requestedHandleTypes()- Returns:
- the value of the
requestedHandleTypesfield.
-
location
- Returns:
- a
CUmemLocationview of thelocationfield.
-
win32HandleMetaData
public long win32HandleMetaData()- Returns:
- the value of the
win32HandleMetaDatafield.
-
allocFlags_compressionType
public byte allocFlags_compressionType()- Returns:
- the value of the
allocFlags.compressionTypefield.
-
allocFlags_gpuDirectRDMACapable
public byte allocFlags_gpuDirectRDMACapable()- Returns:
- the value of the
allocFlags.gpuDirectRDMACapablefield.
-
allocFlags_usage
public short allocFlags_usage()- Returns:
- the value of the
allocFlags.usagefield.
-
allocFlags_reserved
- Returns:
- a
ByteBufferview of theallocFlags.reservedfield.
-
allocFlags_reserved
public byte allocFlags_reserved(int index) - Returns:
- the value at the specified index of the
allocFlags.reservedfield.
-
type
Sets the specified value to thetypefield. -
requestedHandleTypes
Sets the specified value to therequestedHandleTypesfield. -
location
Copies the specifiedCUmemLocationto thelocationfield. -
location
Passes thelocationfield to the specifiedConsumer. -
win32HandleMetaData
Sets the specified value to thewin32HandleMetaDatafield. -
allocFlags_compressionType
Sets the specified value to thecompressionTypefield. -
allocFlags_gpuDirectRDMACapable
Sets the specified value to thegpuDirectRDMACapablefield. -
allocFlags_usage
Sets the specified value to theusagefield. -
allocFlags_reserved
Copies the specifiedByteBufferto thereservedfield. -
allocFlags_reserved
Sets the specified value at the specified index of thereservedfield.
-