public class CXTUResourceUsage
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
data – private data member, used for queriesnumEntries – the number of entries in the entries array.entries – an array of key-value pairs, representing the breakdown of memory usage
struct CXTUResourceUsage {
void * data;
unsigned numEntries;
CXTUResourceUsageEntry * entries;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXTUResourceUsage.Buffer
An array of
CXTUResourceUsage structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DATA
The struct member offsets.
|
static int |
ENTRIES
The struct member offsets.
|
static int |
NUMENTRIES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXTUResourceUsage(java.nio.ByteBuffer container)
Creates a
CXTUResourceUsage instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static CXTUResourceUsage |
calloc()
Returns a new
CXTUResourceUsage instance allocated with memCalloc. |
static CXTUResourceUsage.Buffer |
calloc(int capacity)
Returns a new
CXTUResourceUsage.Buffer instance allocated with memCalloc. |
static CXTUResourceUsage |
callocStack()
Returns a new
CXTUResourceUsage instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXTUResourceUsage.Buffer |
callocStack(int capacity)
Returns a new
CXTUResourceUsage.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CXTUResourceUsage.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXTUResourceUsage.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXTUResourceUsage |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXTUResourceUsage instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CXTUResourceUsage |
create()
Returns a new
CXTUResourceUsage instance allocated with BufferUtils. |
static CXTUResourceUsage.Buffer |
create(int capacity)
Returns a new
CXTUResourceUsage.Buffer instance allocated with BufferUtils. |
static CXTUResourceUsage |
create(long address)
Returns a new
CXTUResourceUsage instance for the specified memory address. |
static CXTUResourceUsage.Buffer |
create(long address,
int capacity)
Create a
CXTUResourceUsage.Buffer instance at the specified memory. |
static CXTUResourceUsage |
createSafe(long address)
|
static CXTUResourceUsage.Buffer |
createSafe(long address,
int capacity)
|
long |
data()
Returns the value of the
data field. |
CXTUResourceUsageEntry.Buffer |
entries()
Returns a
CXTUResourceUsageEntry.Buffer view of the struct array pointed to by the entries field. |
static CXTUResourceUsage |
malloc()
Returns a new
CXTUResourceUsage instance allocated with memAlloc. |
static CXTUResourceUsage.Buffer |
malloc(int capacity)
Returns a new
CXTUResourceUsage.Buffer instance allocated with memAlloc. |
static CXTUResourceUsage |
mallocStack()
Returns a new
CXTUResourceUsage instance allocated on the thread-local MemoryStack. |
static CXTUResourceUsage.Buffer |
mallocStack(int capacity)
Returns a new
CXTUResourceUsage.Buffer instance allocated on the thread-local MemoryStack. |
static CXTUResourceUsage.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CXTUResourceUsage.Buffer instance allocated on the specified MemoryStack. |
static CXTUResourceUsage |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CXTUResourceUsage instance allocated on the specified MemoryStack. |
static long |
ndata(long struct)
Unsafe version of
data(). |
static CXTUResourceUsageEntry.Buffer |
nentries(long struct)
Unsafe version of
entries(). |
static int |
nnumEntries(long struct)
Unsafe version of
numEntries(). |
int |
numEntries()
Returns the value of the
numEntries field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DATA
public static final int NUMENTRIES
public static final int ENTRIES
public CXTUResourceUsage(java.nio.ByteBuffer container)
CXTUResourceUsage 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 long data()
data field.public int numEntries()
numEntries field.public CXTUResourceUsageEntry.Buffer entries()
CXTUResourceUsageEntry.Buffer view of the struct array pointed to by the entries field.public static CXTUResourceUsage malloc()
CXTUResourceUsage instance allocated with memAlloc. The instance must be explicitly freed.public static CXTUResourceUsage calloc()
CXTUResourceUsage instance allocated with memCalloc. The instance must be explicitly freed.public static CXTUResourceUsage create()
CXTUResourceUsage instance allocated with BufferUtils.public static CXTUResourceUsage create(long address)
CXTUResourceUsage instance for the specified memory address.@Nullable public static CXTUResourceUsage createSafe(long address)
public static CXTUResourceUsage.Buffer malloc(int capacity)
CXTUResourceUsage.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXTUResourceUsage.Buffer calloc(int capacity)
CXTUResourceUsage.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CXTUResourceUsage.Buffer create(int capacity)
CXTUResourceUsage.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CXTUResourceUsage.Buffer create(long address, int capacity)
CXTUResourceUsage.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXTUResourceUsage.Buffer createSafe(long address, int capacity)
public static CXTUResourceUsage mallocStack()
CXTUResourceUsage instance allocated on the thread-local MemoryStack.public static CXTUResourceUsage callocStack()
CXTUResourceUsage instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CXTUResourceUsage mallocStack(org.lwjgl.system.MemoryStack stack)
CXTUResourceUsage instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CXTUResourceUsage callocStack(org.lwjgl.system.MemoryStack stack)
CXTUResourceUsage instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CXTUResourceUsage.Buffer mallocStack(int capacity)
CXTUResourceUsage.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CXTUResourceUsage.Buffer callocStack(int capacity)
CXTUResourceUsage.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CXTUResourceUsage.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXTUResourceUsage.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CXTUResourceUsage.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CXTUResourceUsage.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 long ndata(long struct)
data().public static int nnumEntries(long struct)
numEntries().public static CXTUResourceUsageEntry.Buffer nentries(long struct)
entries().Copyright LWJGL. All Rights Reserved. License terms.