Package org.lwjgl.system.rpmalloc
Class RPmallocThreadStatistics.span_use
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<RPmallocThreadStatistics.span_use>
org.lwjgl.system.rpmalloc.RPmallocThreadStatistics.span_use
- All Implemented Interfaces:
Pointer
- Enclosing class:
RPmallocThreadStatistics
public static class RPmallocThreadStatistics.span_use
extends Struct<RPmallocThreadStatistics.span_use>
struct {
size_t current;
size_t peak;
size_t to_global;
size_t from_global;
size_t to_cache;
size_t from_cache;
size_t to_reserved;
size_t from_reserved;
size_t map_calls;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofRPmallocThreadStatistics.span_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 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
ConstructorsConstructorDescriptionspan_use(ByteBuffer container) Creates aspan_useinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncreate(long address) Returns a newspan_useinstance for the specified memory address.create(long address, int capacity) Create aRPmallocThreadStatistics.span_use.Bufferinstance at the specified memory.static @Nullable RPmallocThreadStatistics.span_usecreateSafe(long address) static @Nullable RPmallocThreadStatistics.span_use.BuffercreateSafe(long address, int capacity) longcurrent()longlonglonglongstatic longncurrent(long struct) Unsafe version ofcurrent().static longnfrom_cache(long struct) Unsafe version offrom_cache().static longnfrom_global(long struct) Unsafe version offrom_global().static longnfrom_reserved(long struct) Unsafe version offrom_reserved().static longnmap_calls(long struct) Unsafe version ofmap_calls().static longnpeak(long struct) Unsafe version ofpeak().static longnto_cache(long struct) Unsafe version ofto_cache().static longnto_global(long struct) Unsafe version ofto_global().static longnto_reserved(long struct) Unsafe version ofto_reserved().longpeak()intsizeof()Returnssizeof(struct).longto_cache()longlongMethods 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. -
CURRENT
public static final int CURRENTThe struct member offsets. -
PEAK
public static final int PEAKThe struct member offsets. -
TO_GLOBAL
public static final int TO_GLOBALThe struct member offsets. -
FROM_GLOBAL
public static final int FROM_GLOBALThe struct member offsets. -
TO_CACHE
public static final int TO_CACHEThe struct member offsets. -
FROM_CACHE
public static final int FROM_CACHEThe struct member offsets. -
TO_RESERVED
public static final int TO_RESERVEDThe struct member offsets. -
FROM_RESERVED
public static final int FROM_RESERVEDThe struct member offsets. -
MAP_CALLS
public static final int MAP_CALLSThe struct member offsets.
-
-
Constructor Details
-
span_use
Creates aspan_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.span_use>
-
current
public long current()- Returns:
- the value of the
currentfield.
-
peak
public long peak()- Returns:
- the value of the
peakfield.
-
to_global
public long to_global()- Returns:
- the value of the
to_globalfield.
-
from_global
public long from_global()- Returns:
- the value of the
from_globalfield.
-
to_cache
public long to_cache()- Returns:
- the value of the
to_cachefield.
-
from_cache
public long from_cache()- Returns:
- the value of the
from_cachefield.
-
to_reserved
public long to_reserved()- Returns:
- the value of the
to_reservedfield.
-
from_reserved
public long from_reserved()- Returns:
- the value of the
from_reservedfield.
-
map_calls
public long map_calls()- Returns:
- the value of the
map_callsfield.
-
create
Returns a newspan_useinstance for the specified memory address. -
createSafe
-
create
Create aRPmallocThreadStatistics.span_use.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable RPmallocThreadStatistics.span_use.Buffer createSafe(long address, int capacity) -
ncurrent
public static long ncurrent(long struct) Unsafe version ofcurrent(). -
npeak
public static long npeak(long struct) Unsafe version ofpeak(). -
nto_global
public static long nto_global(long struct) Unsafe version ofto_global(). -
nfrom_global
public static long nfrom_global(long struct) Unsafe version offrom_global(). -
nto_cache
public static long nto_cache(long struct) Unsafe version ofto_cache(). -
nfrom_cache
public static long nfrom_cache(long struct) Unsafe version offrom_cache(). -
nto_reserved
public static long nto_reserved(long struct) Unsafe version ofto_reserved(). -
nfrom_reserved
public static long nfrom_reserved(long struct) Unsafe version offrom_reserved(). -
nmap_calls
public static long nmap_calls(long struct) Unsafe version ofmap_calls().
-