Class ecs_suspend_readonly_state_t

java.lang.Object
com.github.elebras1.flecs.ecs_suspend_readonly_state_t

public class ecs_suspend_readonly_state_t extends Object
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 Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • is_readonly$layout

      public static final ValueLayout.OfBoolean 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

      public static boolean is_readonly(MemorySegment struct)
      Getter for field:
      _Bool is_readonly
      
    • is_readonly

      public static void is_readonly(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool is_readonly
      
    • is_deferred$layout

      public static final ValueLayout.OfBoolean 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

      public static boolean is_deferred(MemorySegment struct)
      Getter for field:
      _Bool is_deferred
      
    • is_deferred

      public static void is_deferred(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool is_deferred
      
    • cmd_flushing$layout

      public static final ValueLayout.OfBoolean 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

      public static boolean cmd_flushing(MemorySegment struct)
      Getter for field:
      _Bool cmd_flushing
      
    • cmd_flushing

      public static void cmd_flushing(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool cmd_flushing
      
    • defer_count$layout

      public static final ValueLayout.OfInt 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

      public static int defer_count(MemorySegment struct)
      Getter for field:
      int32_t defer_count
      
    • defer_count

      public static void defer_count(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t defer_count
      
    • scope$layout

      public static final ValueLayout.OfLong 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

      public static long scope(MemorySegment struct)
      Getter for field:
      ecs_entity_t scope
      
    • scope

      public static void scope(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t scope
      
    • with$layout

      public static final ValueLayout.OfLong 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

      public static long with(MemorySegment struct)
      Getter for field:
      ecs_entity_t with
      
    • with

      public static void with(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t with
      
    • cmd_stack$layout

      public static final SequenceLayout 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

      public static MemorySegment cmd_stack(MemorySegment struct)
      Getter for field:
      ecs_commands_t cmd_stack[2]
      
    • cmd_stack

      public static void cmd_stack(MemorySegment struct, MemorySegment fieldValue)
      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

      public static MemorySegment cmd_stack(MemorySegment struct, long index0)
      Indexed getter for field:
      ecs_commands_t cmd_stack[2]
      
    • cmd_stack

      public static void cmd_stack(MemorySegment struct, long index0, MemorySegment fieldValue)
      Indexed setter for field:
      ecs_commands_t cmd_stack[2]
      
    • cmd$layout

      public static final AddressLayout 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

      public static MemorySegment cmd(MemorySegment struct)
      Getter for field:
      ecs_commands_t *cmd
      
    • cmd

      public static void cmd(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_commands_t *cmd
      
    • stage$layout

      public static final AddressLayout 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

      public static MemorySegment stage(MemorySegment struct)
      Getter for field:
      ecs_stage_t *stage
      
    • stage

      public static void stage(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_stage_t *stage
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()