Class EcsWorldSummary
java.lang.Object
com.github.elebras1.flecs.EcsWorldSummary
struct {
double target_fps;
double time_scale;
double fps;
double frame_time_total;
double system_time_total;
double merge_time_total;
int64_t entity_count;
int64_t table_count;
int64_t frame_count;
int64_t command_count;
int64_t merge_count;
int64_t systems_ran_total;
int64_t observers_ran_total;
int64_t queries_ran_total;
int32_t tag_count;
int32_t component_count;
int32_t pair_count;
double frame_time_frame;
double system_time_frame;
double merge_time_frame;
int64_t merge_count_frame;
int64_t systems_ran_frame;
int64_t observers_ran_frame;
int64_t queries_ran_frame;
int64_t command_count_frame;
double simulation_time;
uint32_t uptime;
ecs_build_info_t build_info;
}
-
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 MemorySegmentbuild_info(MemorySegment struct) Getter for field:ecs_build_info_t build_infostatic voidbuild_info(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_build_info_t build_infostatic final GroupLayoutLayout for field:ecs_build_info_t build_infostatic final longOffset for field:ecs_build_info_t build_infostatic longcommand_count(MemorySegment struct) Getter for field:int64_t command_countstatic voidcommand_count(MemorySegment struct, long fieldValue) Setter for field:int64_t command_countstatic longcommand_count_frame(MemorySegment struct) Getter for field:int64_t command_count_framestatic voidcommand_count_frame(MemorySegment struct, long fieldValue) Setter for field:int64_t command_count_framestatic final ValueLayout.OfLongLayout for field:int64_t command_count_framestatic final longOffset for field:int64_t command_count_framestatic final ValueLayout.OfLongLayout for field:int64_t command_countstatic final longOffset for field:int64_t command_countstatic intcomponent_count(MemorySegment struct) Getter for field:int32_t component_countstatic voidcomponent_count(MemorySegment struct, int fieldValue) Setter for field:int32_t component_countstatic final ValueLayout.OfIntLayout for field:int32_t component_countstatic final longOffset for field:int32_t component_countstatic longentity_count(MemorySegment struct) Getter for field:int64_t entity_countstatic voidentity_count(MemorySegment struct, long fieldValue) Setter for field:int64_t entity_countstatic final ValueLayout.OfLongLayout for field:int64_t entity_countstatic final longOffset for field:int64_t entity_countstatic doublefps(MemorySegment struct) Getter for field:double fpsstatic voidfps(MemorySegment struct, double fieldValue) Setter for field:double fpsstatic final ValueLayout.OfDoubleLayout for field:double fpsstatic final longOffset for field:double fpsstatic longframe_count(MemorySegment struct) Getter for field:int64_t frame_countstatic voidframe_count(MemorySegment struct, long fieldValue) Setter for field:int64_t frame_countstatic final ValueLayout.OfLongLayout for field:int64_t frame_countstatic final longOffset for field:int64_t frame_countstatic doubleframe_time_frame(MemorySegment struct) Getter for field:double frame_time_framestatic voidframe_time_frame(MemorySegment struct, double fieldValue) Setter for field:double frame_time_framestatic final ValueLayout.OfDoubleLayout for field:double frame_time_framestatic final longOffset for field:double frame_time_framestatic doubleframe_time_total(MemorySegment struct) Getter for field:double frame_time_totalstatic voidframe_time_total(MemorySegment struct, double fieldValue) Setter for field:double frame_time_totalstatic final ValueLayout.OfDoubleLayout for field:double frame_time_totalstatic final longOffset for field:double frame_time_totalstatic final GroupLayoutlayout()The layout of this structstatic longmerge_count(MemorySegment struct) Getter for field:int64_t merge_countstatic voidmerge_count(MemorySegment struct, long fieldValue) Setter for field:int64_t merge_countstatic longmerge_count_frame(MemorySegment struct) Getter for field:int64_t merge_count_framestatic voidmerge_count_frame(MemorySegment struct, long fieldValue) Setter for field:int64_t merge_count_framestatic final ValueLayout.OfLongLayout for field:int64_t merge_count_framestatic final longOffset for field:int64_t merge_count_framestatic final ValueLayout.OfLongLayout for field:int64_t merge_countstatic final longOffset for field:int64_t merge_countstatic doublemerge_time_frame(MemorySegment struct) Getter for field:double merge_time_framestatic voidmerge_time_frame(MemorySegment struct, double fieldValue) Setter for field:double merge_time_framestatic final ValueLayout.OfDoubleLayout for field:double merge_time_framestatic final longOffset for field:double merge_time_framestatic doublemerge_time_total(MemorySegment struct) Getter for field:double merge_time_totalstatic voidmerge_time_total(MemorySegment struct, double fieldValue) Setter for field:double merge_time_totalstatic final ValueLayout.OfDoubleLayout for field:double merge_time_totalstatic final longOffset for field:double merge_time_totalstatic longobservers_ran_frame(MemorySegment struct) Getter for field:int64_t observers_ran_framestatic voidobservers_ran_frame(MemorySegment struct, long fieldValue) Setter for field:int64_t observers_ran_framestatic final ValueLayout.OfLongLayout for field:int64_t observers_ran_framestatic final longOffset for field:int64_t observers_ran_framestatic longobservers_ran_total(MemorySegment struct) Getter for field:int64_t observers_ran_totalstatic voidobservers_ran_total(MemorySegment struct, long fieldValue) Setter for field:int64_t observers_ran_totalstatic final ValueLayout.OfLongLayout for field:int64_t observers_ran_totalstatic final longOffset for field:int64_t observers_ran_totalstatic intpair_count(MemorySegment struct) Getter for field:int32_t pair_countstatic voidpair_count(MemorySegment struct, int fieldValue) Setter for field:int32_t pair_countstatic final ValueLayout.OfIntLayout for field:int32_t pair_countstatic final longOffset for field:int32_t pair_countstatic longqueries_ran_frame(MemorySegment struct) Getter for field:int64_t queries_ran_framestatic voidqueries_ran_frame(MemorySegment struct, long fieldValue) Setter for field:int64_t queries_ran_framestatic final ValueLayout.OfLongLayout for field:int64_t queries_ran_framestatic final longOffset for field:int64_t queries_ran_framestatic longqueries_ran_total(MemorySegment struct) Getter for field:int64_t queries_ran_totalstatic voidqueries_ran_total(MemorySegment struct, long fieldValue) Setter for field:int64_t queries_ran_totalstatic final ValueLayout.OfLongLayout for field:int64_t queries_ran_totalstatic final longOffset for field:int64_t queries_ran_totalstatic 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 doublesimulation_time(MemorySegment struct) Getter for field:double simulation_timestatic voidsimulation_time(MemorySegment struct, double fieldValue) Setter for field:double simulation_timestatic final ValueLayout.OfDoubleLayout for field:double simulation_timestatic final longOffset for field:double simulation_timestatic longsizeof()The size (in bytes) of this structstatic doublesystem_time_frame(MemorySegment struct) Getter for field:double system_time_framestatic voidsystem_time_frame(MemorySegment struct, double fieldValue) Setter for field:double system_time_framestatic final ValueLayout.OfDoubleLayout for field:double system_time_framestatic final longOffset for field:double system_time_framestatic doublesystem_time_total(MemorySegment struct) Getter for field:double system_time_totalstatic voidsystem_time_total(MemorySegment struct, double fieldValue) Setter for field:double system_time_totalstatic final ValueLayout.OfDoubleLayout for field:double system_time_totalstatic final longOffset for field:double system_time_totalstatic longsystems_ran_frame(MemorySegment struct) Getter for field:int64_t systems_ran_framestatic voidsystems_ran_frame(MemorySegment struct, long fieldValue) Setter for field:int64_t systems_ran_framestatic final ValueLayout.OfLongLayout for field:int64_t systems_ran_framestatic final longOffset for field:int64_t systems_ran_framestatic longsystems_ran_total(MemorySegment struct) Getter for field:int64_t systems_ran_totalstatic voidsystems_ran_total(MemorySegment struct, long fieldValue) Setter for field:int64_t systems_ran_totalstatic final ValueLayout.OfLongLayout for field:int64_t systems_ran_totalstatic final longOffset for field:int64_t systems_ran_totalstatic longtable_count(MemorySegment struct) Getter for field:int64_t table_countstatic voidtable_count(MemorySegment struct, long fieldValue) Setter for field:int64_t table_countstatic final ValueLayout.OfLongLayout for field:int64_t table_countstatic final longOffset for field:int64_t table_countstatic inttag_count(MemorySegment struct) Getter for field:int32_t tag_countstatic voidtag_count(MemorySegment struct, int fieldValue) Setter for field:int32_t tag_countstatic final ValueLayout.OfIntLayout for field:int32_t tag_countstatic final longOffset for field:int32_t tag_countstatic doubletarget_fps(MemorySegment struct) Getter for field:double target_fpsstatic voidtarget_fps(MemorySegment struct, double fieldValue) Setter for field:double target_fpsstatic final ValueLayout.OfDoubleLayout for field:double target_fpsstatic final longOffset for field:double target_fpsstatic doubletime_scale(MemorySegment struct) Getter for field:double time_scalestatic voidtime_scale(MemorySegment struct, double fieldValue) Setter for field:double time_scalestatic final ValueLayout.OfDoubleLayout for field:double time_scalestatic final longOffset for field:double time_scalestatic intuptime(MemorySegment struct) Getter for field:uint32_t uptimestatic voiduptime(MemorySegment struct, int fieldValue) Setter for field:uint32_t uptimestatic final ValueLayout.OfIntLayout for field:uint32_t uptimestatic final longOffset for field:uint32_t uptime
-
Method Details
-
layout
The layout of this struct -
target_fps$layout
Layout for field:double target_fps -
target_fps$offset
public static final long target_fps$offset()Offset for field:double target_fps -
target_fps
Getter for field:double target_fps -
target_fps
Setter for field:double target_fps -
time_scale$layout
Layout for field:double time_scale -
time_scale$offset
public static final long time_scale$offset()Offset for field:double time_scale -
time_scale
Getter for field:double time_scale -
time_scale
Setter for field:double time_scale -
fps$layout
Layout for field:double fps -
fps$offset
public static final long fps$offset()Offset for field:double fps -
fps
Getter for field:double fps -
fps
Setter for field:double fps -
frame_time_total$layout
Layout for field:double frame_time_total -
frame_time_total$offset
public static final long frame_time_total$offset()Offset for field:double frame_time_total -
frame_time_total
Getter for field:double frame_time_total -
frame_time_total
Setter for field:double frame_time_total -
system_time_total$layout
Layout for field:double system_time_total -
system_time_total$offset
public static final long system_time_total$offset()Offset for field:double system_time_total -
system_time_total
Getter for field:double system_time_total -
system_time_total
Setter for field:double system_time_total -
merge_time_total$layout
Layout for field:double merge_time_total -
merge_time_total$offset
public static final long merge_time_total$offset()Offset for field:double merge_time_total -
merge_time_total
Getter for field:double merge_time_total -
merge_time_total
Setter for field:double merge_time_total -
entity_count$layout
Layout for field:int64_t entity_count -
entity_count$offset
public static final long entity_count$offset()Offset for field:int64_t entity_count -
entity_count
Getter for field:int64_t entity_count -
entity_count
Setter for field:int64_t entity_count -
table_count$layout
Layout for field:int64_t table_count -
table_count$offset
public static final long table_count$offset()Offset for field:int64_t table_count -
table_count
Getter for field:int64_t table_count -
table_count
Setter for field:int64_t table_count -
frame_count$layout
Layout for field:int64_t frame_count -
frame_count$offset
public static final long frame_count$offset()Offset for field:int64_t frame_count -
frame_count
Getter for field:int64_t frame_count -
frame_count
Setter for field:int64_t frame_count -
command_count$layout
Layout for field:int64_t command_count -
command_count$offset
public static final long command_count$offset()Offset for field:int64_t command_count -
command_count
Getter for field:int64_t command_count -
command_count
Setter for field:int64_t command_count -
merge_count$layout
Layout for field:int64_t merge_count -
merge_count$offset
public static final long merge_count$offset()Offset for field:int64_t merge_count -
merge_count
Getter for field:int64_t merge_count -
merge_count
Setter for field:int64_t merge_count -
systems_ran_total$layout
Layout for field:int64_t systems_ran_total -
systems_ran_total$offset
public static final long systems_ran_total$offset()Offset for field:int64_t systems_ran_total -
systems_ran_total
Getter for field:int64_t systems_ran_total -
systems_ran_total
Setter for field:int64_t systems_ran_total -
observers_ran_total$layout
Layout for field:int64_t observers_ran_total -
observers_ran_total$offset
public static final long observers_ran_total$offset()Offset for field:int64_t observers_ran_total -
observers_ran_total
Getter for field:int64_t observers_ran_total -
observers_ran_total
Setter for field:int64_t observers_ran_total -
queries_ran_total$layout
Layout for field:int64_t queries_ran_total -
queries_ran_total$offset
public static final long queries_ran_total$offset()Offset for field:int64_t queries_ran_total -
queries_ran_total
Getter for field:int64_t queries_ran_total -
queries_ran_total
Setter for field:int64_t queries_ran_total -
tag_count$layout
Layout for field:int32_t tag_count -
tag_count$offset
public static final long tag_count$offset()Offset for field:int32_t tag_count -
tag_count
Getter for field:int32_t tag_count -
tag_count
Setter for field:int32_t tag_count -
component_count$layout
Layout for field:int32_t component_count -
component_count$offset
public static final long component_count$offset()Offset for field:int32_t component_count -
component_count
Getter for field:int32_t component_count -
component_count
Setter for field:int32_t component_count -
pair_count$layout
Layout for field:int32_t pair_count -
pair_count$offset
public static final long pair_count$offset()Offset for field:int32_t pair_count -
pair_count
Getter for field:int32_t pair_count -
pair_count
Setter for field:int32_t pair_count -
frame_time_frame$layout
Layout for field:double frame_time_frame -
frame_time_frame$offset
public static final long frame_time_frame$offset()Offset for field:double frame_time_frame -
frame_time_frame
Getter for field:double frame_time_frame -
frame_time_frame
Setter for field:double frame_time_frame -
system_time_frame$layout
Layout for field:double system_time_frame -
system_time_frame$offset
public static final long system_time_frame$offset()Offset for field:double system_time_frame -
system_time_frame
Getter for field:double system_time_frame -
system_time_frame
Setter for field:double system_time_frame -
merge_time_frame$layout
Layout for field:double merge_time_frame -
merge_time_frame$offset
public static final long merge_time_frame$offset()Offset for field:double merge_time_frame -
merge_time_frame
Getter for field:double merge_time_frame -
merge_time_frame
Setter for field:double merge_time_frame -
merge_count_frame$layout
Layout for field:int64_t merge_count_frame -
merge_count_frame$offset
public static final long merge_count_frame$offset()Offset for field:int64_t merge_count_frame -
merge_count_frame
Getter for field:int64_t merge_count_frame -
merge_count_frame
Setter for field:int64_t merge_count_frame -
systems_ran_frame$layout
Layout for field:int64_t systems_ran_frame -
systems_ran_frame$offset
public static final long systems_ran_frame$offset()Offset for field:int64_t systems_ran_frame -
systems_ran_frame
Getter for field:int64_t systems_ran_frame -
systems_ran_frame
Setter for field:int64_t systems_ran_frame -
observers_ran_frame$layout
Layout for field:int64_t observers_ran_frame -
observers_ran_frame$offset
public static final long observers_ran_frame$offset()Offset for field:int64_t observers_ran_frame -
observers_ran_frame
Getter for field:int64_t observers_ran_frame -
observers_ran_frame
Setter for field:int64_t observers_ran_frame -
queries_ran_frame$layout
Layout for field:int64_t queries_ran_frame -
queries_ran_frame$offset
public static final long queries_ran_frame$offset()Offset for field:int64_t queries_ran_frame -
queries_ran_frame
Getter for field:int64_t queries_ran_frame -
queries_ran_frame
Setter for field:int64_t queries_ran_frame -
command_count_frame$layout
Layout for field:int64_t command_count_frame -
command_count_frame$offset
public static final long command_count_frame$offset()Offset for field:int64_t command_count_frame -
command_count_frame
Getter for field:int64_t command_count_frame -
command_count_frame
Setter for field:int64_t command_count_frame -
simulation_time$layout
Layout for field:double simulation_time -
simulation_time$offset
public static final long simulation_time$offset()Offset for field:double simulation_time -
simulation_time
Getter for field:double simulation_time -
simulation_time
Setter for field:double simulation_time -
uptime$layout
Layout for field:uint32_t uptime -
uptime$offset
public static final long uptime$offset()Offset for field:uint32_t uptime -
uptime
Getter for field:uint32_t uptime -
uptime
Setter for field:uint32_t uptime -
build_info$layout
Layout for field:ecs_build_info_t build_info -
build_info$offset
public static final long build_info$offset()Offset for field:ecs_build_info_t build_info -
build_info
Getter for field:ecs_build_info_t build_info -
build_info
Setter for field:ecs_build_info_t build_info -
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()
-