Package org.lwjgl.cuda
Class CUmemAllocationProp.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUmemAllocationProp,CUmemAllocationProp.Buffer>
-
- org.lwjgl.cuda.CUmemAllocationProp.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.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 ofCUmemAllocationPropstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
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 byCUmemAllocationProp.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 Detail
-
type
public int type()
- Returns:
- the value of the
CUmemAllocationProp.type()field.
-
requestedHandleTypes
public int requestedHandleTypes()
- Returns:
- the value of the
CUmemAllocationProp.requestedHandleTypes()field.
-
location
public CUmemLocation location()
- Returns:
- a
CUmemLocationview of theCUmemAllocationProp.location()field.
-
win32HandleMetaData
public long win32HandleMetaData()
- Returns:
- the value of the
CUmemAllocationProp.win32HandleMetaData()field.
-
allocFlags_compressionType
public byte allocFlags_compressionType()
- Returns:
- the value of the
CUmemAllocationProp.allocFlags_compressionType()field.
-
allocFlags_gpuDirectRDMACapable
public byte allocFlags_gpuDirectRDMACapable()
- Returns:
- the value of the
allocFlags.gpuDirectRDMACapablefield.
-
allocFlags_usage
public short allocFlags_usage()
- Returns:
- the value of the
CUmemAllocationProp.allocFlags_usage()field.
-
allocFlags_reserved
public java.nio.ByteBuffer 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
public CUmemAllocationProp.Buffer type(int value)
Sets the specified value to theCUmemAllocationProp.type()field.
-
requestedHandleTypes
public CUmemAllocationProp.Buffer requestedHandleTypes(int value)
Sets the specified value to theCUmemAllocationProp.requestedHandleTypes()field.
-
location
public CUmemAllocationProp.Buffer location(CUmemLocation value)
Copies the specifiedCUmemLocationto theCUmemAllocationProp.location()field.
-
location
public CUmemAllocationProp.Buffer location(java.util.function.Consumer<CUmemLocation> consumer)
Passes theCUmemAllocationProp.location()field to the specifiedConsumer.
-
win32HandleMetaData
public CUmemAllocationProp.Buffer win32HandleMetaData(long value)
Sets the specified value to theCUmemAllocationProp.win32HandleMetaData()field.
-
allocFlags_compressionType
public CUmemAllocationProp.Buffer allocFlags_compressionType(byte value)
Sets the specified value to theCUmemAllocationProp.allocFlags_compressionType()field.
-
allocFlags_gpuDirectRDMACapable
public CUmemAllocationProp.Buffer allocFlags_gpuDirectRDMACapable(byte value)
Sets the specified value to thegpuDirectRDMACapablefield.
-
allocFlags_usage
public CUmemAllocationProp.Buffer allocFlags_usage(short value)
Sets the specified value to theCUmemAllocationProp.allocFlags_usage()field.
-
allocFlags_reserved
public CUmemAllocationProp.Buffer allocFlags_reserved(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto thereservedfield.
-
allocFlags_reserved
public CUmemAllocationProp.Buffer allocFlags_reserved(int index, byte value)
Sets the specified value at the specified index of thereservedfield.
-
-