public static class CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer extends org.lwjgl.system.StructBuffer<CUDA_EXTERNAL_MEMORY_BUFFER_DESC,CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer> implements org.lwjgl.system.NativeResource
CUDA_EXTERNAL_MEMORY_BUFFER_DESC structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
int |
flags()
Returns the value of the
flags field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
flags(int value)
Sets the specified value to the
flags field. |
long |
offset()
Returns the value of the
offset field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
offset(long value)
Sets the specified value to the
offset field. |
java.nio.IntBuffer |
reserved()
Returns a
IntBuffer view of the reserved field. |
int |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
reserved(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the reserved field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
reserved(int index,
int value)
Sets the specified value at the specified index of the
reserved field. |
long |
size()
Returns the value of the
size field. |
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer |
size(long value)
Sets the specified value to the
size field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer instance 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 CUDA_EXTERNAL_MEMORY_BUFFER_DESC.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public long offset()
offset field.public long size()
size field.public int flags()
flags field.public java.nio.IntBuffer reserved()
IntBuffer view of the reserved field.public int reserved(int index)
reserved field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer offset(long value)
offset field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer size(long value)
size field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer flags(int value)
flags field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer reserved(java.nio.IntBuffer value)
IntBuffer to the reserved field.public CUDA_EXTERNAL_MEMORY_BUFFER_DESC.Buffer reserved(int index, int value)
reserved field.Copyright LWJGL. All Rights Reserved. License terms.