public class CUIPCMemHandle
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct CUipcMemHandle {
char reserved[CU_IPC_HANDLE_SIZE];
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUIPCMemHandle.Buffer
An array of
CUIPCMemHandle structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
RESERVED
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CUIPCMemHandle(java.nio.ByteBuffer container)
Creates a
CUIPCMemHandle instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CUIPCMemHandle |
calloc()
Returns a new
CUIPCMemHandle instance allocated with memCalloc. |
static CUIPCMemHandle.Buffer |
calloc(int capacity)
Returns a new
CUIPCMemHandle.Buffer instance allocated with memCalloc. |
static CUIPCMemHandle |
callocStack()
Returns a new
CUIPCMemHandle instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUIPCMemHandle.Buffer |
callocStack(int capacity)
Returns a new
CUIPCMemHandle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUIPCMemHandle.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUIPCMemHandle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUIPCMemHandle |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUIPCMemHandle instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUIPCMemHandle |
create()
Returns a new
CUIPCMemHandle instance allocated with BufferUtils. |
static CUIPCMemHandle.Buffer |
create(int capacity)
Returns a new
CUIPCMemHandle.Buffer instance allocated with BufferUtils. |
static CUIPCMemHandle |
create(long address)
Returns a new
CUIPCMemHandle instance for the specified memory address. |
static CUIPCMemHandle.Buffer |
create(long address,
int capacity)
Create a
CUIPCMemHandle.Buffer instance at the specified memory. |
static CUIPCMemHandle |
createSafe(long address)
|
static CUIPCMemHandle.Buffer |
createSafe(long address,
int capacity)
|
static CUIPCMemHandle |
malloc()
Returns a new
CUIPCMemHandle instance allocated with memAlloc. |
static CUIPCMemHandle.Buffer |
malloc(int capacity)
Returns a new
CUIPCMemHandle.Buffer instance allocated with memAlloc. |
static CUIPCMemHandle |
mallocStack()
Returns a new
CUIPCMemHandle instance allocated on the thread-local MemoryStack. |
static CUIPCMemHandle.Buffer |
mallocStack(int capacity)
Returns a new
CUIPCMemHandle.Buffer instance allocated on the thread-local MemoryStack. |
static CUIPCMemHandle.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUIPCMemHandle.Buffer instance allocated on the specified MemoryStack. |
static CUIPCMemHandle |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUIPCMemHandle instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
nreserved(long struct)
Unsafe version of
reserved(). |
static void |
nreserved(long struct,
java.nio.ByteBuffer value)
Unsafe version of
reserved. |
static byte |
nreserved(long struct,
int index)
Unsafe version of
reserved. |
static void |
nreserved(long struct,
int index,
byte value)
Unsafe version of
reserved. |
java.nio.ByteBuffer |
reserved()
Returns a
ByteBuffer view of the reserved field. |
CUIPCMemHandle |
reserved(java.nio.ByteBuffer value)
Copies the specified
ByteBuffer to the reserved field. |
byte |
reserved(int index)
Returns the value at the specified index of the
reserved field. |
CUIPCMemHandle |
reserved(int index,
byte value)
Sets the specified value at the specified index of the
reserved field. |
CUIPCMemHandle |
set(CUIPCMemHandle src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int RESERVED
public CUIPCMemHandle(java.nio.ByteBuffer container)
CUIPCMemHandle instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic java.nio.ByteBuffer reserved()
ByteBuffer view of the reserved field.public byte reserved(int index)
reserved field.public CUIPCMemHandle reserved(java.nio.ByteBuffer value)
ByteBuffer to the reserved field.public CUIPCMemHandle reserved(int index, byte value)
reserved field.public CUIPCMemHandle set(CUIPCMemHandle src)
src - the source structpublic static CUIPCMemHandle malloc()
CUIPCMemHandle instance allocated with memAlloc. The instance must be explicitly freed.public static CUIPCMemHandle calloc()
CUIPCMemHandle instance allocated with memCalloc. The instance must be explicitly freed.public static CUIPCMemHandle create()
CUIPCMemHandle instance allocated with BufferUtils.public static CUIPCMemHandle create(long address)
CUIPCMemHandle instance for the specified memory address.@Nullable public static CUIPCMemHandle createSafe(long address)
public static CUIPCMemHandle.Buffer malloc(int capacity)
CUIPCMemHandle.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUIPCMemHandle.Buffer calloc(int capacity)
CUIPCMemHandle.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUIPCMemHandle.Buffer create(int capacity)
CUIPCMemHandle.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUIPCMemHandle.Buffer create(long address, int capacity)
CUIPCMemHandle.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUIPCMemHandle.Buffer createSafe(long address, int capacity)
public static CUIPCMemHandle mallocStack()
CUIPCMemHandle instance allocated on the thread-local MemoryStack.public static CUIPCMemHandle callocStack()
CUIPCMemHandle instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUIPCMemHandle mallocStack(org.lwjgl.system.MemoryStack stack)
CUIPCMemHandle instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUIPCMemHandle callocStack(org.lwjgl.system.MemoryStack stack)
CUIPCMemHandle instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUIPCMemHandle.Buffer mallocStack(int capacity)
CUIPCMemHandle.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUIPCMemHandle.Buffer callocStack(int capacity)
CUIPCMemHandle.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUIPCMemHandle.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUIPCMemHandle.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUIPCMemHandle.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUIPCMemHandle.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.ByteBuffer nreserved(long struct)
reserved().public static byte nreserved(long struct,
int index)
reserved.public static void nreserved(long struct,
java.nio.ByteBuffer value)
reserved.public static void nreserved(long struct,
int index,
byte value)
reserved.Copyright LWJGL. All Rights Reserved. License terms.