Package org.lwjgl.llvm
Class CXTUResourceUsage
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.CXTUResourceUsage
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CXTUResourceUsage extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe memory usage of a CXTranslationUnit, broken into categories.Layout
struct CXTUResourceUsage { void *data(); unsignednumEntries();CXTUResourceUsageEntry*entries(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCXTUResourceUsage.BufferAn array ofCXTUResourceUsagestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDATA
ENTRIES
NUMENTRIESThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CXTUResourceUsage(java.nio.ByteBuffer container)Creates aCXTUResourceUsageinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CXTUResourceUsagecalloc()Returns a newCXTUResourceUsageinstance allocated withmemCalloc.static CXTUResourceUsage.Buffercalloc(int capacity)Returns a newCXTUResourceUsage.Bufferinstance allocated withmemCalloc.static CXTUResourceUsage.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXTUResourceUsage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXTUResourceUsagecalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXTUResourceUsageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CXTUResourceUsagecallocStack()Deprecated.static CXTUResourceUsage.BuffercallocStack(int capacity)Deprecated.static CXTUResourceUsage.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXTUResourceUsagecallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CXTUResourceUsagecreate()Returns a newCXTUResourceUsageinstance allocated withBufferUtils.static CXTUResourceUsage.Buffercreate(int capacity)Returns a newCXTUResourceUsage.Bufferinstance allocated withBufferUtils.static CXTUResourceUsagecreate(long address)Returns a newCXTUResourceUsageinstance for the specified memory address.static CXTUResourceUsage.Buffercreate(long address, int capacity)Create aCXTUResourceUsage.Bufferinstance at the specified memory.static CXTUResourceUsagecreateSafe(long address)static CXTUResourceUsage.BuffercreateSafe(long address, int capacity)longdata()private data member, used for queriesCXTUResourceUsageEntry.Bufferentries()an array of key-value pairs, representing the breakdown of memory usagestatic CXTUResourceUsagemalloc()Returns a newCXTUResourceUsageinstance allocated withmemAlloc.static CXTUResourceUsage.Buffermalloc(int capacity)Returns a newCXTUResourceUsage.Bufferinstance allocated withmemAlloc.static CXTUResourceUsage.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCXTUResourceUsage.Bufferinstance allocated on the specifiedMemoryStack.static CXTUResourceUsagemalloc(org.lwjgl.system.MemoryStack stack)Returns a newCXTUResourceUsageinstance allocated on the specifiedMemoryStack.static CXTUResourceUsagemallocStack()Deprecated.static CXTUResourceUsage.BuffermallocStack(int capacity)Deprecated.static CXTUResourceUsage.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CXTUResourceUsagemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longndata(long struct)Unsafe version ofdata().static CXTUResourceUsageEntry.Buffernentries(long struct)Unsafe version ofentries().static intnnumEntries(long struct)Unsafe version ofnumEntries().intnumEntries()the number of entries in theentriesarray.intsizeof()
-
-
-
Constructor Detail
-
CXTUResourceUsage
public CXTUResourceUsage(java.nio.ByteBuffer container)
Creates aCXTUResourceUsageinstance 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
-
data
public long data()
private data member, used for queries
-
numEntries
public int numEntries()
the number of entries in theentriesarray.
-
entries
public CXTUResourceUsageEntry.Buffer entries()
an array of key-value pairs, representing the breakdown of memory usage
-
malloc
public static CXTUResourceUsage malloc()
Returns a newCXTUResourceUsageinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CXTUResourceUsage calloc()
Returns a newCXTUResourceUsageinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CXTUResourceUsage create()
Returns a newCXTUResourceUsageinstance allocated withBufferUtils.
-
create
public static CXTUResourceUsage create(long address)
Returns a newCXTUResourceUsageinstance for the specified memory address.
-
createSafe
@Nullable public static CXTUResourceUsage createSafe(long address)
-
malloc
public static CXTUResourceUsage.Buffer malloc(int capacity)
Returns a newCXTUResourceUsage.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CXTUResourceUsage.Buffer calloc(int capacity)
Returns a newCXTUResourceUsage.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CXTUResourceUsage.Buffer create(int capacity)
Returns a newCXTUResourceUsage.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CXTUResourceUsage.Buffer create(long address, int capacity)
Create aCXTUResourceUsage.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CXTUResourceUsage.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CXTUResourceUsage mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXTUResourceUsage callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXTUResourceUsage mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CXTUResourceUsage callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CXTUResourceUsage.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXTUResourceUsage.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CXTUResourceUsage.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CXTUResourceUsage.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CXTUResourceUsage malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXTUResourceUsageinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CXTUResourceUsage calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCXTUResourceUsageinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CXTUResourceUsage.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXTUResourceUsage.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CXTUResourceUsage.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCXTUResourceUsage.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndata
public static long ndata(long struct)
Unsafe version ofdata().
-
nnumEntries
public static int nnumEntries(long struct)
Unsafe version ofnumEntries().
-
nentries
public static CXTUResourceUsageEntry.Buffer nentries(long struct)
Unsafe version ofentries().
-
-