Package org.lwjgl.llvm
Class CXTUResourceUsageEntry
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXTUResourceUsageEntry
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class CXTUResourceUsageEntry extends org.lwjgl.system.Struct
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXTUResourceUsageEntry.BufferAn array ofCXTUResourceUsageEntrystructs.
-
Constructor Summary
Constructors Constructor Description CXTUResourceUsageEntry(java.nio.ByteBuffer container)Creates aCXTUResourceUsageEntryinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longamount()amount of resources used.static CXTUResourceUsageEntrycreate(long address)Returns a newCXTUResourceUsageEntryinstance for the specified memory address.static CXTUResourceUsageEntry.Buffercreate(long address, int capacity)Create aCXTUResourceUsageEntry.Bufferinstance at the specified memory.static CXTUResourceUsageEntrycreateSafe(long address)static CXTUResourceUsageEntry.BuffercreateSafe(long address, int capacity)intkind()the memory usage categorystatic longnamount(long struct)Unsafe version ofamount().static intnkind(long struct)Unsafe version ofkind().intsizeof()
-
-
-
Constructor Detail
-
CXTUResourceUsageEntry
public CXTUResourceUsageEntry(java.nio.ByteBuffer container)
Creates aCXTUResourceUsageEntryinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
kind
public int kind()
the memory usage category
-
amount
public long amount()
amount of resources used. The units will depend on the resource kind.
-
create
public static CXTUResourceUsageEntry create(long address)
Returns a newCXTUResourceUsageEntryinstance for the specified memory address.
-
createSafe
@Nullable public static CXTUResourceUsageEntry createSafe(long address)
-
create
public static CXTUResourceUsageEntry.Buffer create(long address, int capacity)
Create aCXTUResourceUsageEntry.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXTUResourceUsageEntry.Buffer createSafe(long address, int capacity)
-
nkind
public static int nkind(long struct)
Unsafe version ofkind().
-
namount
public static long namount(long struct)
Unsafe version ofamount().
-
-