Class ecs_system_stats_t
java.lang.Object
com.github.elebras1.flecs.ecs_system_stats_t
struct ecs_system_stats_t {
int64_t first_;
ecs_metric_t time_spent;
int64_t last_;
_Bool task;
ecs_query_stats_t query;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static longfirst_(MemorySegment struct) Getter for field:int64_t first_static voidfirst_(MemorySegment struct, long fieldValue) Setter for field:int64_t first_static final ValueLayout.OfLongLayout for field:int64_t first_static final longOffset for field:int64_t first_static longlast_(MemorySegment struct) Getter for field:int64_t last_static voidlast_(MemorySegment struct, long fieldValue) Setter for field:int64_t last_static final ValueLayout.OfLongLayout for field:int64_t last_static final longOffset for field:int64_t last_static final GroupLayoutlayout()The layout of this structstatic MemorySegmentquery(MemorySegment struct) Getter for field:ecs_query_stats_t querystatic voidquery(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_query_stats_t querystatic final GroupLayoutLayout for field:ecs_query_stats_t querystatic final longOffset for field:ecs_query_stats_t querystatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this structstatic booleantask(MemorySegment struct) Getter for field:_Bool taskstatic voidtask(MemorySegment struct, boolean fieldValue) Setter for field:_Bool taskstatic final ValueLayout.OfBooleanLayout for field:_Bool taskstatic final longOffset for field:_Bool taskstatic MemorySegmenttime_spent(MemorySegment struct) Getter for field:ecs_metric_t time_spentstatic voidtime_spent(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_metric_t time_spentstatic final GroupLayoutLayout for field:ecs_metric_t time_spentstatic final longOffset for field:ecs_metric_t time_spent
-
Method Details
-
layout
The layout of this struct -
first_$layout
Layout for field:int64_t first_ -
first_$offset
public static final long first_$offset()Offset for field:int64_t first_ -
first_
Getter for field:int64_t first_ -
first_
Setter for field:int64_t first_ -
time_spent$layout
Layout for field:ecs_metric_t time_spent -
time_spent$offset
public static final long time_spent$offset()Offset for field:ecs_metric_t time_spent -
time_spent
Getter for field:ecs_metric_t time_spent -
time_spent
Setter for field:ecs_metric_t time_spent -
last_$layout
Layout for field:int64_t last_ -
last_$offset
public static final long last_$offset()Offset for field:int64_t last_ -
last_
Getter for field:int64_t last_ -
last_
Setter for field:int64_t last_ -
task$layout
Layout for field:_Bool task -
task$offset
public static final long task$offset()Offset for field:_Bool task -
task
Getter for field:_Bool task -
task
Setter for field:_Bool task -
query$layout
Layout for field:ecs_query_stats_t query -
query$offset
public static final long query$offset()Offset for field:ecs_query_stats_t query -
query
Getter for field:ecs_query_stats_t query -
query
Setter for field:ecs_query_stats_t query -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-