public class CXTUResourceUsageEntry
extends org.lwjgl.system.Struct
kind – the memory usage categoryamount – amount of resources used. The units will depend on the resource kind.
struct CXTUResourceUsageEntry {
enum CXTUResourceUsageKind kind;
unsigned long amount;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CXTUResourceUsageEntry.Buffer
An array of
CXTUResourceUsageEntry structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
AMOUNT
The struct member offsets.
|
static int |
KIND
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CXTUResourceUsageEntry(java.nio.ByteBuffer container)
Creates a
CXTUResourceUsageEntry instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
amount()
Returns the value of the
amount field. |
static CXTUResourceUsageEntry |
create(long address)
Returns a new
CXTUResourceUsageEntry instance for the specified memory address. |
static CXTUResourceUsageEntry.Buffer |
create(long address,
int capacity)
Create a
CXTUResourceUsageEntry.Buffer instance at the specified memory. |
static CXTUResourceUsageEntry |
createSafe(long address)
|
static CXTUResourceUsageEntry.Buffer |
createSafe(long address,
int capacity)
|
int |
kind()
Returns the value of the
kind field. |
static long |
namount(long struct)
Unsafe version of
amount(). |
static int |
nkind(long struct)
Unsafe version of
kind(). |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int KIND
public static final int AMOUNT
public CXTUResourceUsageEntry(java.nio.ByteBuffer container)
CXTUResourceUsageEntry 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 int kind()
kind field.public long amount()
amount field.public static CXTUResourceUsageEntry create(long address)
CXTUResourceUsageEntry instance for the specified memory address.@Nullable public static CXTUResourceUsageEntry createSafe(long address)
public static CXTUResourceUsageEntry.Buffer create(long address, int capacity)
CXTUResourceUsageEntry.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CXTUResourceUsageEntry.Buffer createSafe(long address, int capacity)
public static int nkind(long struct)
kind().public static long namount(long struct)
amount().Copyright LWJGL. All Rights Reserved. License terms.