Package org.lwjgl.cuda
Class CUmemPoolProps.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<CUmemPoolProps,CUmemPoolProps.Buffer>
-
- org.lwjgl.cuda.CUmemPoolProps.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<CUmemPoolProps>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- CUmemPoolProps
public static class CUmemPoolProps.Buffer extends org.lwjgl.system.StructBuffer<CUmemPoolProps,CUmemPoolProps.Buffer> implements org.lwjgl.system.NativeResource
An array ofCUmemPoolPropsstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intallocType()CUmemPoolProps.BufferallocType(int value)Sets the specified value to theCUmemPoolProps.allocType()field.inthandleTypes()CUmemPoolProps.BufferhandleTypes(int value)Sets the specified value to theCUmemPoolProps.handleTypes()field.CUmemLocationlocation()CUmemPoolProps.Bufferlocation(java.util.function.Consumer<CUmemLocation> consumer)Passes theCUmemPoolProps.location()field to the specifiedConsumer.CUmemPoolProps.Bufferlocation(CUmemLocation value)Copies the specifiedCUmemLocationto theCUmemPoolProps.location()field.java.nio.ByteBufferreserved()bytereserved(int index)CUmemPoolProps.Bufferreserved(int index, byte value)Sets the specified value at the specified index of theCUmemPoolProps.reserved()field.CUmemPoolProps.Bufferreserved(java.nio.ByteBuffer value)Copies the specifiedByteBufferto theCUmemPoolProps.reserved()field.longwin32SecurityAttributes()CUmemPoolProps.Bufferwin32SecurityAttributes(long value)Sets the specified value to theCUmemPoolProps.win32SecurityAttributes()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newCUmemPoolProps.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 byCUmemPoolProps.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
-
allocType
public int allocType()
- Returns:
- the value of the
CUmemPoolProps.allocType()field.
-
handleTypes
public int handleTypes()
- Returns:
- the value of the
CUmemPoolProps.handleTypes()field.
-
location
public CUmemLocation location()
- Returns:
- a
CUmemLocationview of theCUmemPoolProps.location()field.
-
win32SecurityAttributes
public long win32SecurityAttributes()
- Returns:
- the value of the
CUmemPoolProps.win32SecurityAttributes()field.
-
reserved
public java.nio.ByteBuffer reserved()
- Returns:
- a
ByteBufferview of theCUmemPoolProps.reserved()field.
-
reserved
public byte reserved(int index)
- Returns:
- the value at the specified index of the
CUmemPoolProps.reserved()field.
-
allocType
public CUmemPoolProps.Buffer allocType(int value)
Sets the specified value to theCUmemPoolProps.allocType()field.
-
handleTypes
public CUmemPoolProps.Buffer handleTypes(int value)
Sets the specified value to theCUmemPoolProps.handleTypes()field.
-
location
public CUmemPoolProps.Buffer location(CUmemLocation value)
Copies the specifiedCUmemLocationto theCUmemPoolProps.location()field.
-
location
public CUmemPoolProps.Buffer location(java.util.function.Consumer<CUmemLocation> consumer)
Passes theCUmemPoolProps.location()field to the specifiedConsumer.
-
win32SecurityAttributes
public CUmemPoolProps.Buffer win32SecurityAttributes(long value)
Sets the specified value to theCUmemPoolProps.win32SecurityAttributes()field.
-
reserved
public CUmemPoolProps.Buffer reserved(java.nio.ByteBuffer value)
Copies the specifiedByteBufferto theCUmemPoolProps.reserved()field.
-
reserved
public CUmemPoolProps.Buffer reserved(int index, byte value)
Sets the specified value at the specified index of theCUmemPoolProps.reserved()field.
-
-