Package org.lwjgl.system.rpmalloc
Class RPmallocThreadStatistics.size_use
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<RPmallocThreadStatistics.size_use>
org.lwjgl.system.rpmalloc.RPmallocThreadStatistics.size_use
- All Implemented Interfaces:
Pointer
- Enclosing class:
RPmallocThreadStatistics
public static class RPmallocThreadStatistics.size_use
extends Struct<RPmallocThreadStatistics.size_use>
struct {
size_t alloc_current;
size_t alloc_peak;
size_t alloc_total;
size_t free_total;
size_t spans_to_cache;
size_t spans_from_cache;
size_t spans_from_reserved;
size_t map_calls;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofRPmallocThreadStatistics.size_usestructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionsize_use(ByteBuffer container) Creates asize_useinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlonglonglongcreate(long address) Returns a newsize_useinstance for the specified memory address.create(long address, int capacity) Create aRPmallocThreadStatistics.size_use.Bufferinstance at the specified memory.static @Nullable RPmallocThreadStatistics.size_usecreateSafe(long address) static @Nullable RPmallocThreadStatistics.size_use.BuffercreateSafe(long address, int capacity) longlongstatic longnalloc_current(long struct) Unsafe version ofalloc_current().static longnalloc_peak(long struct) Unsafe version ofalloc_peak().static longnalloc_total(long struct) Unsafe version ofalloc_total().static longnfree_total(long struct) Unsafe version offree_total().static longnmap_calls(long struct) Unsafe version ofmap_calls().static longnspans_from_cache(long struct) Unsafe version ofspans_from_cache().static longnspans_from_reserved(long struct) Unsafe version ofspans_from_reserved().static longnspans_to_cache(long struct) Unsafe version ofspans_to_cache().intsizeof()Returnssizeof(struct).longlonglongMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ALLOC_CURRENT
public static final int ALLOC_CURRENTThe struct member offsets. -
ALLOC_PEAK
public static final int ALLOC_PEAKThe struct member offsets. -
ALLOC_TOTAL
public static final int ALLOC_TOTALThe struct member offsets. -
FREE_TOTAL
public static final int FREE_TOTALThe struct member offsets. -
SPANS_TO_CACHE
public static final int SPANS_TO_CACHEThe struct member offsets. -
SPANS_FROM_CACHE
public static final int SPANS_FROM_CACHEThe struct member offsets. -
SPANS_FROM_RESERVED
public static final int SPANS_FROM_RESERVEDThe struct member offsets. -
MAP_CALLS
public static final int MAP_CALLSThe struct member offsets.
-
-
Constructor Details
-
size_use
Creates asize_useinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<RPmallocThreadStatistics.size_use>
-
alloc_current
public long alloc_current()- Returns:
- the value of the
alloc_currentfield.
-
alloc_peak
public long alloc_peak()- Returns:
- the value of the
alloc_peakfield.
-
alloc_total
public long alloc_total()- Returns:
- the value of the
alloc_totalfield.
-
free_total
public long free_total()- Returns:
- the value of the
free_totalfield.
-
spans_to_cache
public long spans_to_cache()- Returns:
- the value of the
spans_to_cachefield.
-
spans_from_cache
public long spans_from_cache()- Returns:
- the value of the
spans_from_cachefield.
-
spans_from_reserved
public long spans_from_reserved()- Returns:
- the value of the
spans_from_reservedfield.
-
map_calls
public long map_calls()- Returns:
- the value of the
map_callsfield.
-
create
Returns a newsize_useinstance for the specified memory address. -
createSafe
-
create
Create aRPmallocThreadStatistics.size_use.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable RPmallocThreadStatistics.size_use.Buffer createSafe(long address, int capacity) -
nalloc_current
public static long nalloc_current(long struct) Unsafe version ofalloc_current(). -
nalloc_peak
public static long nalloc_peak(long struct) Unsafe version ofalloc_peak(). -
nalloc_total
public static long nalloc_total(long struct) Unsafe version ofalloc_total(). -
nfree_total
public static long nfree_total(long struct) Unsafe version offree_total(). -
nspans_to_cache
public static long nspans_to_cache(long struct) Unsafe version ofspans_to_cache(). -
nspans_from_cache
public static long nspans_from_cache(long struct) Unsafe version ofspans_from_cache(). -
nspans_from_reserved
public static long nspans_from_reserved(long struct) Unsafe version ofspans_from_reserved(). -
nmap_calls
public static long nmap_calls(long struct) Unsafe version ofmap_calls().
-