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 class
An array ofRPmallocThreadStatistics.size_use
structs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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_use
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
create
(long address) Returns a newsize_use
instance for the specified memory address.create
(long address, int capacity) Create aRPmallocThreadStatistics.size_use.Buffer
instance at the specified memory.static @Nullable RPmallocThreadStatistics.size_use
createSafe
(long address) static @Nullable RPmallocThreadStatistics.size_use.Buffer
createSafe
(long address, int capacity) long
long
static long
nalloc_current
(long struct) Unsafe version ofalloc_current()
.static long
nalloc_peak
(long struct) Unsafe version ofalloc_peak()
.static long
nalloc_total
(long struct) Unsafe version ofalloc_total()
.static long
nfree_total
(long struct) Unsafe version offree_total()
.static long
nmap_calls
(long struct) Unsafe version ofmap_calls()
.static long
nspans_from_cache
(long struct) Unsafe version ofspans_from_cache()
.static long
nspans_from_reserved
(long struct) Unsafe version ofspans_from_reserved()
.static long
nspans_to_cache
(long struct) Unsafe version ofspans_to_cache()
.int
sizeof()
Returnssizeof(struct)
.long
long
long
Methods 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_use
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<RPmallocThreadStatistics.size_use>
-
alloc_current
public long alloc_current()- Returns:
- the value of the
alloc_current
field.
-
alloc_peak
public long alloc_peak()- Returns:
- the value of the
alloc_peak
field.
-
alloc_total
public long alloc_total()- Returns:
- the value of the
alloc_total
field.
-
free_total
public long free_total()- Returns:
- the value of the
free_total
field.
-
spans_to_cache
public long spans_to_cache()- Returns:
- the value of the
spans_to_cache
field.
-
spans_from_cache
public long spans_from_cache()- Returns:
- the value of the
spans_from_cache
field.
-
spans_from_reserved
public long spans_from_reserved()- Returns:
- the value of the
spans_from_reserved
field.
-
map_calls
public long map_calls()- Returns:
- the value of the
map_calls
field.
-
create
Returns a newsize_use
instance for the specified memory address. -
createSafe
-
create
Create aRPmallocThreadStatistics.size_use.Buffer
instance 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()
.
-