Class ecs_world_info_t
java.lang.Object
com.github.elebras1.flecs.ecs_world_info_t
struct ecs_world_info_t {
ecs_entity_t last_component_id;
ecs_entity_t min_id;
ecs_entity_t max_id;
float delta_time_raw;
float delta_time;
float time_scale;
float target_fps;
float frame_time_total;
float system_time_total;
float emit_time_total;
float merge_time_total;
float rematch_time_total;
double world_time_total;
double world_time_total_raw;
int64_t frame_count_total;
int64_t merge_count_total;
int64_t eval_comp_monitors_total;
int64_t rematch_count_total;
int64_t id_create_total;
int64_t id_delete_total;
int64_t table_create_total;
int64_t table_delete_total;
int64_t pipeline_build_count_total;
int64_t systems_ran_total;
int64_t observers_ran_total;
int64_t queries_ran_total;
int32_t tag_id_count;
int32_t component_id_count;
int32_t pair_id_count;
int32_t table_count;
uint32_t creation_time;
struct {
int64_t add_count;
int64_t remove_count;
int64_t delete_count;
int64_t clear_count;
int64_t set_count;
int64_t ensure_count;
int64_t modified_count;
int64_t discard_count;
int64_t event_count;
int64_t other_count;
int64_t batched_entity_count;
int64_t batched_command_count;
} cmd;
const char *name_prefix;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstruct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } -
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 MemorySegmentcmd(MemorySegment struct) Getter for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmdstatic voidcmd(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmdstatic final GroupLayoutLayout for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmdstatic final longOffset for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmdstatic intcomponent_id_count(MemorySegment struct) Getter for field:int32_t component_id_countstatic voidcomponent_id_count(MemorySegment struct, int fieldValue) Setter for field:int32_t component_id_countstatic final ValueLayout.OfIntLayout for field:int32_t component_id_countstatic final longOffset for field:int32_t component_id_countstatic intcreation_time(MemorySegment struct) Getter for field:uint32_t creation_timestatic voidcreation_time(MemorySegment struct, int fieldValue) Setter for field:uint32_t creation_timestatic final ValueLayout.OfIntLayout for field:uint32_t creation_timestatic final longOffset for field:uint32_t creation_timestatic floatdelta_time(MemorySegment struct) Getter for field:float delta_timestatic voiddelta_time(MemorySegment struct, float fieldValue) Setter for field:float delta_timestatic floatdelta_time_raw(MemorySegment struct) Getter for field:float delta_time_rawstatic voiddelta_time_raw(MemorySegment struct, float fieldValue) Setter for field:float delta_time_rawstatic final ValueLayout.OfFloatLayout for field:float delta_time_rawstatic final longOffset for field:float delta_time_rawstatic final ValueLayout.OfFloatLayout for field:float delta_timestatic final longOffset for field:float delta_timestatic floatemit_time_total(MemorySegment struct) Getter for field:float emit_time_totalstatic voidemit_time_total(MemorySegment struct, float fieldValue) Setter for field:float emit_time_totalstatic final ValueLayout.OfFloatLayout for field:float emit_time_totalstatic final longOffset for field:float emit_time_totalstatic longGetter for field:int64_t eval_comp_monitors_totalstatic voideval_comp_monitors_total(MemorySegment struct, long fieldValue) Setter for field:int64_t eval_comp_monitors_totalstatic final ValueLayout.OfLongLayout for field:int64_t eval_comp_monitors_totalstatic final longOffset for field:int64_t eval_comp_monitors_totalstatic longframe_count_total(MemorySegment struct) Getter for field:int64_t frame_count_totalstatic voidframe_count_total(MemorySegment struct, long fieldValue) Setter for field:int64_t frame_count_totalstatic final ValueLayout.OfLongLayout for field:int64_t frame_count_totalstatic final longOffset for field:int64_t frame_count_totalstatic floatframe_time_total(MemorySegment struct) Getter for field:float frame_time_totalstatic voidframe_time_total(MemorySegment struct, float fieldValue) Setter for field:float frame_time_totalstatic final ValueLayout.OfFloatLayout for field:float frame_time_totalstatic final longOffset for field:float frame_time_totalstatic longid_create_total(MemorySegment struct) Getter for field:int64_t id_create_totalstatic voidid_create_total(MemorySegment struct, long fieldValue) Setter for field:int64_t id_create_totalstatic final ValueLayout.OfLongLayout for field:int64_t id_create_totalstatic final longOffset for field:int64_t id_create_totalstatic longid_delete_total(MemorySegment struct) Getter for field:int64_t id_delete_totalstatic voidid_delete_total(MemorySegment struct, long fieldValue) Setter for field:int64_t id_delete_totalstatic final ValueLayout.OfLongLayout for field:int64_t id_delete_totalstatic final longOffset for field:int64_t id_delete_totalstatic longlast_component_id(MemorySegment struct) Getter for field:ecs_entity_t last_component_idstatic voidlast_component_id(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t last_component_idstatic final ValueLayout.OfLongLayout for field:ecs_entity_t last_component_idstatic final longOffset for field:ecs_entity_t last_component_idstatic final GroupLayoutlayout()The layout of this structstatic longmax_id(MemorySegment struct) Getter for field:ecs_entity_t max_idstatic voidmax_id(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t max_idstatic final ValueLayout.OfLongLayout for field:ecs_entity_t max_idstatic final longOffset for field:ecs_entity_t max_idstatic longmerge_count_total(MemorySegment struct) Getter for field:int64_t merge_count_totalstatic voidmerge_count_total(MemorySegment struct, long fieldValue) Setter for field:int64_t merge_count_totalstatic final ValueLayout.OfLongLayout for field:int64_t merge_count_totalstatic final longOffset for field:int64_t merge_count_totalstatic floatmerge_time_total(MemorySegment struct) Getter for field:float merge_time_totalstatic voidmerge_time_total(MemorySegment struct, float fieldValue) Setter for field:float merge_time_totalstatic final ValueLayout.OfFloatLayout for field:float merge_time_totalstatic final longOffset for field:float merge_time_totalstatic longmin_id(MemorySegment struct) Getter for field:ecs_entity_t min_idstatic voidmin_id(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t min_idstatic final ValueLayout.OfLongLayout for field:ecs_entity_t min_idstatic final longOffset for field:ecs_entity_t min_idstatic MemorySegmentname_prefix(MemorySegment struct) Getter for field:const char *name_prefixstatic voidname_prefix(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *name_prefixstatic final AddressLayoutLayout for field:const char *name_prefixstatic final longOffset for field:const char *name_prefixstatic 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_id_count(MemorySegment struct) Getter for field:int32_t pair_id_countstatic voidpair_id_count(MemorySegment struct, int fieldValue) Setter for field:int32_t pair_id_countstatic final ValueLayout.OfIntLayout for field:int32_t pair_id_countstatic final longOffset for field:int32_t pair_id_countstatic longGetter for field:int64_t pipeline_build_count_totalstatic voidpipeline_build_count_total(MemorySegment struct, long fieldValue) Setter for field:int64_t pipeline_build_count_totalstatic final ValueLayout.OfLongLayout for field:int64_t pipeline_build_count_totalstatic final longOffset for field:int64_t pipeline_build_count_totalstatic 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 longrematch_count_total(MemorySegment struct) Getter for field:int64_t rematch_count_totalstatic voidrematch_count_total(MemorySegment struct, long fieldValue) Setter for field:int64_t rematch_count_totalstatic final ValueLayout.OfLongLayout for field:int64_t rematch_count_totalstatic final longOffset for field:int64_t rematch_count_totalstatic floatrematch_time_total(MemorySegment struct) Getter for field:float rematch_time_totalstatic voidrematch_time_total(MemorySegment struct, float fieldValue) Setter for field:float rematch_time_totalstatic final ValueLayout.OfFloatLayout for field:float rematch_time_totalstatic final longOffset for field:float rematch_time_totalstatic longsizeof()The size (in bytes) of this structstatic floatsystem_time_total(MemorySegment struct) Getter for field:float system_time_totalstatic voidsystem_time_total(MemorySegment struct, float fieldValue) Setter for field:float system_time_totalstatic final ValueLayout.OfFloatLayout for field:float system_time_totalstatic final longOffset for field:float system_time_totalstatic 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 inttable_count(MemorySegment struct) Getter for field:int32_t table_countstatic voidtable_count(MemorySegment struct, int fieldValue) Setter for field:int32_t table_countstatic final ValueLayout.OfIntLayout for field:int32_t table_countstatic final longOffset for field:int32_t table_countstatic longtable_create_total(MemorySegment struct) Getter for field:int64_t table_create_totalstatic voidtable_create_total(MemorySegment struct, long fieldValue) Setter for field:int64_t table_create_totalstatic final ValueLayout.OfLongLayout for field:int64_t table_create_totalstatic final longOffset for field:int64_t table_create_totalstatic longtable_delete_total(MemorySegment struct) Getter for field:int64_t table_delete_totalstatic voidtable_delete_total(MemorySegment struct, long fieldValue) Setter for field:int64_t table_delete_totalstatic final ValueLayout.OfLongLayout for field:int64_t table_delete_totalstatic final longOffset for field:int64_t table_delete_totalstatic inttag_id_count(MemorySegment struct) Getter for field:int32_t tag_id_countstatic voidtag_id_count(MemorySegment struct, int fieldValue) Setter for field:int32_t tag_id_countstatic final ValueLayout.OfIntLayout for field:int32_t tag_id_countstatic final longOffset for field:int32_t tag_id_countstatic floattarget_fps(MemorySegment struct) Getter for field:float target_fpsstatic voidtarget_fps(MemorySegment struct, float fieldValue) Setter for field:float target_fpsstatic final ValueLayout.OfFloatLayout for field:float target_fpsstatic final longOffset for field:float target_fpsstatic floattime_scale(MemorySegment struct) Getter for field:float time_scalestatic voidtime_scale(MemorySegment struct, float fieldValue) Setter for field:float time_scalestatic final ValueLayout.OfFloatLayout for field:float time_scalestatic final longOffset for field:float time_scalestatic doubleworld_time_total(MemorySegment struct) Getter for field:double world_time_totalstatic voidworld_time_total(MemorySegment struct, double fieldValue) Setter for field:double world_time_totalstatic doubleworld_time_total_raw(MemorySegment struct) Getter for field:double world_time_total_rawstatic voidworld_time_total_raw(MemorySegment struct, double fieldValue) Setter for field:double world_time_total_rawstatic final ValueLayout.OfDoubleLayout for field:double world_time_total_rawstatic final longOffset for field:double world_time_total_rawstatic final ValueLayout.OfDoubleLayout for field:double world_time_totalstatic final longOffset for field:double world_time_total
-
Method Details
-
layout
The layout of this struct -
last_component_id$layout
Layout for field:ecs_entity_t last_component_id -
last_component_id$offset
public static final long last_component_id$offset()Offset for field:ecs_entity_t last_component_id -
last_component_id
Getter for field:ecs_entity_t last_component_id -
last_component_id
Setter for field:ecs_entity_t last_component_id -
min_id$layout
Layout for field:ecs_entity_t min_id -
min_id$offset
public static final long min_id$offset()Offset for field:ecs_entity_t min_id -
min_id
Getter for field:ecs_entity_t min_id -
min_id
Setter for field:ecs_entity_t min_id -
max_id$layout
Layout for field:ecs_entity_t max_id -
max_id$offset
public static final long max_id$offset()Offset for field:ecs_entity_t max_id -
max_id
Getter for field:ecs_entity_t max_id -
max_id
Setter for field:ecs_entity_t max_id -
delta_time_raw$layout
Layout for field:float delta_time_raw -
delta_time_raw$offset
public static final long delta_time_raw$offset()Offset for field:float delta_time_raw -
delta_time_raw
Getter for field:float delta_time_raw -
delta_time_raw
Setter for field:float delta_time_raw -
delta_time$layout
Layout for field:float delta_time -
delta_time$offset
public static final long delta_time$offset()Offset for field:float delta_time -
delta_time
Getter for field:float delta_time -
delta_time
Setter for field:float delta_time -
time_scale$layout
Layout for field:float time_scale -
time_scale$offset
public static final long time_scale$offset()Offset for field:float time_scale -
time_scale
Getter for field:float time_scale -
time_scale
Setter for field:float time_scale -
target_fps$layout
Layout for field:float target_fps -
target_fps$offset
public static final long target_fps$offset()Offset for field:float target_fps -
target_fps
Getter for field:float target_fps -
target_fps
Setter for field:float target_fps -
frame_time_total$layout
Layout for field:float frame_time_total -
frame_time_total$offset
public static final long frame_time_total$offset()Offset for field:float frame_time_total -
frame_time_total
Getter for field:float frame_time_total -
frame_time_total
Setter for field:float frame_time_total -
system_time_total$layout
Layout for field:float system_time_total -
system_time_total$offset
public static final long system_time_total$offset()Offset for field:float system_time_total -
system_time_total
Getter for field:float system_time_total -
system_time_total
Setter for field:float system_time_total -
emit_time_total$layout
Layout for field:float emit_time_total -
emit_time_total$offset
public static final long emit_time_total$offset()Offset for field:float emit_time_total -
emit_time_total
Getter for field:float emit_time_total -
emit_time_total
Setter for field:float emit_time_total -
merge_time_total$layout
Layout for field:float merge_time_total -
merge_time_total$offset
public static final long merge_time_total$offset()Offset for field:float merge_time_total -
merge_time_total
Getter for field:float merge_time_total -
merge_time_total
Setter for field:float merge_time_total -
rematch_time_total$layout
Layout for field:float rematch_time_total -
rematch_time_total$offset
public static final long rematch_time_total$offset()Offset for field:float rematch_time_total -
rematch_time_total
Getter for field:float rematch_time_total -
rematch_time_total
Setter for field:float rematch_time_total -
world_time_total$layout
Layout for field:double world_time_total -
world_time_total$offset
public static final long world_time_total$offset()Offset for field:double world_time_total -
world_time_total
Getter for field:double world_time_total -
world_time_total
Setter for field:double world_time_total -
world_time_total_raw$layout
Layout for field:double world_time_total_raw -
world_time_total_raw$offset
public static final long world_time_total_raw$offset()Offset for field:double world_time_total_raw -
world_time_total_raw
Getter for field:double world_time_total_raw -
world_time_total_raw
Setter for field:double world_time_total_raw -
frame_count_total$layout
Layout for field:int64_t frame_count_total -
frame_count_total$offset
public static final long frame_count_total$offset()Offset for field:int64_t frame_count_total -
frame_count_total
Getter for field:int64_t frame_count_total -
frame_count_total
Setter for field:int64_t frame_count_total -
merge_count_total$layout
Layout for field:int64_t merge_count_total -
merge_count_total$offset
public static final long merge_count_total$offset()Offset for field:int64_t merge_count_total -
merge_count_total
Getter for field:int64_t merge_count_total -
merge_count_total
Setter for field:int64_t merge_count_total -
eval_comp_monitors_total$layout
Layout for field:int64_t eval_comp_monitors_total -
eval_comp_monitors_total$offset
public static final long eval_comp_monitors_total$offset()Offset for field:int64_t eval_comp_monitors_total -
eval_comp_monitors_total
Getter for field:int64_t eval_comp_monitors_total -
eval_comp_monitors_total
Setter for field:int64_t eval_comp_monitors_total -
rematch_count_total$layout
Layout for field:int64_t rematch_count_total -
rematch_count_total$offset
public static final long rematch_count_total$offset()Offset for field:int64_t rematch_count_total -
rematch_count_total
Getter for field:int64_t rematch_count_total -
rematch_count_total
Setter for field:int64_t rematch_count_total -
id_create_total$layout
Layout for field:int64_t id_create_total -
id_create_total$offset
public static final long id_create_total$offset()Offset for field:int64_t id_create_total -
id_create_total
Getter for field:int64_t id_create_total -
id_create_total
Setter for field:int64_t id_create_total -
id_delete_total$layout
Layout for field:int64_t id_delete_total -
id_delete_total$offset
public static final long id_delete_total$offset()Offset for field:int64_t id_delete_total -
id_delete_total
Getter for field:int64_t id_delete_total -
id_delete_total
Setter for field:int64_t id_delete_total -
table_create_total$layout
Layout for field:int64_t table_create_total -
table_create_total$offset
public static final long table_create_total$offset()Offset for field:int64_t table_create_total -
table_create_total
Getter for field:int64_t table_create_total -
table_create_total
Setter for field:int64_t table_create_total -
table_delete_total$layout
Layout for field:int64_t table_delete_total -
table_delete_total$offset
public static final long table_delete_total$offset()Offset for field:int64_t table_delete_total -
table_delete_total
Getter for field:int64_t table_delete_total -
table_delete_total
Setter for field:int64_t table_delete_total -
pipeline_build_count_total$layout
Layout for field:int64_t pipeline_build_count_total -
pipeline_build_count_total$offset
public static final long pipeline_build_count_total$offset()Offset for field:int64_t pipeline_build_count_total -
pipeline_build_count_total
Getter for field:int64_t pipeline_build_count_total -
pipeline_build_count_total
Setter for field:int64_t pipeline_build_count_total -
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_id_count$layout
Layout for field:int32_t tag_id_count -
tag_id_count$offset
public static final long tag_id_count$offset()Offset for field:int32_t tag_id_count -
tag_id_count
Getter for field:int32_t tag_id_count -
tag_id_count
Setter for field:int32_t tag_id_count -
component_id_count$layout
Layout for field:int32_t component_id_count -
component_id_count$offset
public static final long component_id_count$offset()Offset for field:int32_t component_id_count -
component_id_count
Getter for field:int32_t component_id_count -
component_id_count
Setter for field:int32_t component_id_count -
pair_id_count$layout
Layout for field:int32_t pair_id_count -
pair_id_count$offset
public static final long pair_id_count$offset()Offset for field:int32_t pair_id_count -
pair_id_count
Getter for field:int32_t pair_id_count -
pair_id_count
Setter for field:int32_t pair_id_count -
table_count$layout
Layout for field:int32_t table_count -
table_count$offset
public static final long table_count$offset()Offset for field:int32_t table_count -
table_count
Getter for field:int32_t table_count -
table_count
Setter for field:int32_t table_count -
creation_time$layout
Layout for field:uint32_t creation_time -
creation_time$offset
public static final long creation_time$offset()Offset for field:uint32_t creation_time -
creation_time
Getter for field:uint32_t creation_time -
creation_time
Setter for field:uint32_t creation_time -
cmd$layout
Layout for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmd -
cmd$offset
public static final long cmd$offset()Offset for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmd -
cmd
Getter for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmd -
cmd
Setter for field:struct { int64_t add_count; int64_t remove_count; int64_t delete_count; int64_t clear_count; int64_t set_count; int64_t ensure_count; int64_t modified_count; int64_t discard_count; int64_t event_count; int64_t other_count; int64_t batched_entity_count; int64_t batched_command_count; } cmd -
name_prefix$layout
Layout for field:const char *name_prefix -
name_prefix$offset
public static final long name_prefix$offset()Offset for field:const char *name_prefix -
name_prefix
Getter for field:const char *name_prefix -
name_prefix
Setter for field:const char *name_prefix -
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()
-