Class ecs_suspend_readonly_state_t
java.lang.Object
com.github.elebras1.flecs.ecs_suspend_readonly_state_t
struct ecs_suspend_readonly_state_t {
_Bool is_readonly;
_Bool is_deferred;
_Bool cmd_flushing;
int32_t defer_count;
ecs_entity_t scope;
ecs_entity_t with;
ecs_commands_t cmd_stack[2];
ecs_commands_t *cmd;
ecs_stage_t *stage;
}
-
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:ecs_commands_t *cmdstatic voidcmd(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_commands_t *cmdstatic booleancmd_flushing(MemorySegment struct) Getter for field:_Bool cmd_flushingstatic voidcmd_flushing(MemorySegment struct, boolean fieldValue) Setter for field:_Bool cmd_flushingstatic final ValueLayout.OfBooleanLayout for field:_Bool cmd_flushingstatic final longOffset for field:_Bool cmd_flushingstatic MemorySegmentcmd_stack(MemorySegment struct) Getter for field:ecs_commands_t cmd_stack[2]static MemorySegmentcmd_stack(MemorySegment struct, long index0) Indexed getter for field:ecs_commands_t cmd_stack[2]static voidcmd_stack(MemorySegment struct, long index0, MemorySegment fieldValue) Indexed setter for field:ecs_commands_t cmd_stack[2]static voidcmd_stack(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_commands_t cmd_stack[2]static long[]Dimensions for array field:ecs_commands_t cmd_stack[2]static final SequenceLayoutLayout for field:ecs_commands_t cmd_stack[2]static final longOffset for field:ecs_commands_t cmd_stack[2]static final AddressLayoutLayout for field:ecs_commands_t *cmdstatic final longOffset for field:ecs_commands_t *cmdstatic intdefer_count(MemorySegment struct) Getter for field:int32_t defer_countstatic voiddefer_count(MemorySegment struct, int fieldValue) Setter for field:int32_t defer_countstatic final ValueLayout.OfIntLayout for field:int32_t defer_countstatic final longOffset for field:int32_t defer_countstatic booleanis_deferred(MemorySegment struct) Getter for field:_Bool is_deferredstatic voidis_deferred(MemorySegment struct, boolean fieldValue) Setter for field:_Bool is_deferredstatic final ValueLayout.OfBooleanLayout for field:_Bool is_deferredstatic final longOffset for field:_Bool is_deferredstatic booleanis_readonly(MemorySegment struct) Getter for field:_Bool is_readonlystatic voidis_readonly(MemorySegment struct, boolean fieldValue) Setter for field:_Bool is_readonlystatic final ValueLayout.OfBooleanLayout for field:_Bool is_readonlystatic final longOffset for field:_Bool is_readonlystatic final GroupLayoutlayout()The layout of this structstatic 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 longscope(MemorySegment struct) Getter for field:ecs_entity_t scopestatic voidscope(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t scopestatic final ValueLayout.OfLongLayout for field:ecs_entity_t scopestatic final longOffset for field:ecs_entity_t scopestatic longsizeof()The size (in bytes) of this structstatic MemorySegmentstage(MemorySegment struct) Getter for field:ecs_stage_t *stagestatic voidstage(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_stage_t *stagestatic final AddressLayoutLayout for field:ecs_stage_t *stagestatic final longOffset for field:ecs_stage_t *stagestatic longwith(MemorySegment struct) Getter for field:ecs_entity_t withstatic voidwith(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t withstatic final ValueLayout.OfLongLayout for field:ecs_entity_t withstatic final longOffset for field:ecs_entity_t with
-
Method Details
-
layout
The layout of this struct -
is_readonly$layout
Layout for field:_Bool is_readonly -
is_readonly$offset
public static final long is_readonly$offset()Offset for field:_Bool is_readonly -
is_readonly
Getter for field:_Bool is_readonly -
is_readonly
Setter for field:_Bool is_readonly -
is_deferred$layout
Layout for field:_Bool is_deferred -
is_deferred$offset
public static final long is_deferred$offset()Offset for field:_Bool is_deferred -
is_deferred
Getter for field:_Bool is_deferred -
is_deferred
Setter for field:_Bool is_deferred -
cmd_flushing$layout
Layout for field:_Bool cmd_flushing -
cmd_flushing$offset
public static final long cmd_flushing$offset()Offset for field:_Bool cmd_flushing -
cmd_flushing
Getter for field:_Bool cmd_flushing -
cmd_flushing
Setter for field:_Bool cmd_flushing -
defer_count$layout
Layout for field:int32_t defer_count -
defer_count$offset
public static final long defer_count$offset()Offset for field:int32_t defer_count -
defer_count
Getter for field:int32_t defer_count -
defer_count
Setter for field:int32_t defer_count -
scope$layout
Layout for field:ecs_entity_t scope -
scope$offset
public static final long scope$offset()Offset for field:ecs_entity_t scope -
scope
Getter for field:ecs_entity_t scope -
scope
Setter for field:ecs_entity_t scope -
with$layout
Layout for field:ecs_entity_t with -
with$offset
public static final long with$offset()Offset for field:ecs_entity_t with -
with
Getter for field:ecs_entity_t with -
with
Setter for field:ecs_entity_t with -
cmd_stack$layout
Layout for field:ecs_commands_t cmd_stack[2] -
cmd_stack$offset
public static final long cmd_stack$offset()Offset for field:ecs_commands_t cmd_stack[2] -
cmd_stack
Getter for field:ecs_commands_t cmd_stack[2] -
cmd_stack
Setter for field:ecs_commands_t cmd_stack[2] -
cmd_stack$dimensions
public static long[] cmd_stack$dimensions()Dimensions for array field:ecs_commands_t cmd_stack[2] -
cmd_stack
Indexed getter for field:ecs_commands_t cmd_stack[2] -
cmd_stack
Indexed setter for field:ecs_commands_t cmd_stack[2] -
cmd$layout
Layout for field:ecs_commands_t *cmd -
cmd$offset
public static final long cmd$offset()Offset for field:ecs_commands_t *cmd -
cmd
Getter for field:ecs_commands_t *cmd -
cmd
Setter for field:ecs_commands_t *cmd -
stage$layout
Layout for field:ecs_stage_t *stage -
stage$offset
public static final long stage$offset()Offset for field:ecs_stage_t *stage -
stage
Getter for field:ecs_stage_t *stage -
stage
Setter for field:ecs_stage_t *stage -
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()
-