public class CUuuid
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct CUuuid {
char bytes[16];
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUuuid.Buffer
An array of
CUuuid structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BYTES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CUuuid(java.nio.ByteBuffer container)
Creates a
CUuuid instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bytes()
Returns a
ByteBuffer view of the bytes field. |
java.lang.String |
bytesString()
Decodes the null-terminated string stored in the
bytes field. |
static CUuuid |
calloc()
Returns a new
CUuuid instance allocated with memCalloc. |
static CUuuid.Buffer |
calloc(int capacity)
Returns a new
CUuuid.Buffer instance allocated with memCalloc. |
static CUuuid |
callocStack()
Returns a new
CUuuid instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUuuid.Buffer |
callocStack(int capacity)
Returns a new
CUuuid.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUuuid.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUuuid.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUuuid |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUuuid instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUuuid |
create()
Returns a new
CUuuid instance allocated with BufferUtils. |
static CUuuid.Buffer |
create(int capacity)
Returns a new
CUuuid.Buffer instance allocated with BufferUtils. |
static CUuuid |
create(long address)
Returns a new
CUuuid instance for the specified memory address. |
static CUuuid.Buffer |
create(long address,
int capacity)
Create a
CUuuid.Buffer instance at the specified memory. |
static CUuuid |
createSafe(long address)
|
static CUuuid.Buffer |
createSafe(long address,
int capacity)
|
static CUuuid |
malloc()
Returns a new
CUuuid instance allocated with memAlloc. |
static CUuuid.Buffer |
malloc(int capacity)
Returns a new
CUuuid.Buffer instance allocated with memAlloc. |
static CUuuid |
mallocStack()
Returns a new
CUuuid instance allocated on the thread-local MemoryStack. |
static CUuuid.Buffer |
mallocStack(int capacity)
Returns a new
CUuuid.Buffer instance allocated on the thread-local MemoryStack. |
static CUuuid.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUuuid.Buffer instance allocated on the specified MemoryStack. |
static CUuuid |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUuuid instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
nbytes(long struct)
Unsafe version of
bytes(). |
static java.lang.String |
nbytesString(long struct)
Unsafe version of
bytesString(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BYTES
public CUuuid(java.nio.ByteBuffer container)
CUuuid 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 bytes()
ByteBuffer view of the bytes field.public java.lang.String bytesString()
bytes field.public static CUuuid malloc()
CUuuid instance allocated with memAlloc. The instance must be explicitly freed.public static CUuuid calloc()
CUuuid instance allocated with memCalloc. The instance must be explicitly freed.public static CUuuid create()
CUuuid instance allocated with BufferUtils.public static CUuuid create(long address)
CUuuid instance for the specified memory address.@Nullable public static CUuuid createSafe(long address)
public static CUuuid.Buffer malloc(int capacity)
CUuuid.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUuuid.Buffer calloc(int capacity)
CUuuid.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUuuid.Buffer create(int capacity)
CUuuid.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUuuid.Buffer create(long address, int capacity)
CUuuid.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUuuid.Buffer createSafe(long address, int capacity)
public static CUuuid mallocStack()
CUuuid instance allocated on the thread-local MemoryStack.public static CUuuid callocStack()
CUuuid instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUuuid mallocStack(org.lwjgl.system.MemoryStack stack)
CUuuid instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUuuid callocStack(org.lwjgl.system.MemoryStack stack)
CUuuid instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUuuid.Buffer mallocStack(int capacity)
CUuuid.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUuuid.Buffer callocStack(int capacity)
CUuuid.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUuuid.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUuuid.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUuuid.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUuuid.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 nbytes(long struct)
bytes().public static java.lang.String nbytesString(long struct)
bytesString().Copyright LWJGL. All Rights Reserved. License terms.