Class ecs_script_vars_t

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

public class ecs_script_vars_t extends Object
struct ecs_script_vars_t {
    struct ecs_script_vars_t *parent;
    int32_t sp;
    ecs_hashmap_t var_index;
    ecs_vec_t vars;
    const ecs_world_t *world;
    struct ecs_stack_t *stack;
    ecs_stack_cursor_t *cursor;
    ecs_allocator_t *allocator;
}
  • Method Details

    • layout

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

      public static final AddressLayout parent$layout()
      Layout for field:
      struct ecs_script_vars_t *parent
      
    • parent$offset

      public static final long parent$offset()
      Offset for field:
      struct ecs_script_vars_t *parent
      
    • parent

      public static MemorySegment parent(MemorySegment struct)
      Getter for field:
      struct ecs_script_vars_t *parent
      
    • parent

      public static void parent(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct ecs_script_vars_t *parent
      
    • sp$layout

      public static final ValueLayout.OfInt sp$layout()
      Layout for field:
      int32_t sp
      
    • sp$offset

      public static final long sp$offset()
      Offset for field:
      int32_t sp
      
    • sp

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

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

      public static final GroupLayout var_index$layout()
      Layout for field:
      ecs_hashmap_t var_index
      
    • var_index$offset

      public static final long var_index$offset()
      Offset for field:
      ecs_hashmap_t var_index
      
    • var_index

      public static MemorySegment var_index(MemorySegment struct)
      Getter for field:
      ecs_hashmap_t var_index
      
    • var_index

      public static void var_index(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_hashmap_t var_index
      
    • vars$layout

      public static final GroupLayout vars$layout()
      Layout for field:
      ecs_vec_t vars
      
    • vars$offset

      public static final long vars$offset()
      Offset for field:
      ecs_vec_t vars
      
    • vars

      public static MemorySegment vars(MemorySegment struct)
      Getter for field:
      ecs_vec_t vars
      
    • vars

      public static void vars(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_vec_t vars
      
    • world$layout

      public static final AddressLayout world$layout()
      Layout for field:
      const ecs_world_t *world
      
    • world$offset

      public static final long world$offset()
      Offset for field:
      const ecs_world_t *world
      
    • world

      public static MemorySegment world(MemorySegment struct)
      Getter for field:
      const ecs_world_t *world
      
    • world

      public static void world(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_world_t *world
      
    • stack$layout

      public static final AddressLayout stack$layout()
      Layout for field:
      struct ecs_stack_t *stack
      
    • stack$offset

      public static final long stack$offset()
      Offset for field:
      struct ecs_stack_t *stack
      
    • stack

      public static MemorySegment stack(MemorySegment struct)
      Getter for field:
      struct ecs_stack_t *stack
      
    • stack

      public static void stack(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      struct ecs_stack_t *stack
      
    • cursor$layout

      public static final AddressLayout cursor$layout()
      Layout for field:
      ecs_stack_cursor_t *cursor
      
    • cursor$offset

      public static final long cursor$offset()
      Offset for field:
      ecs_stack_cursor_t *cursor
      
    • cursor

      public static MemorySegment cursor(MemorySegment struct)
      Getter for field:
      ecs_stack_cursor_t *cursor
      
    • cursor

      public static void cursor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_stack_cursor_t *cursor
      
    • allocator$layout

      public static final AddressLayout allocator$layout()
      Layout for field:
      ecs_allocator_t *allocator
      
    • allocator$offset

      public static final long allocator$offset()
      Offset for field:
      ecs_allocator_t *allocator
      
    • allocator

      public static MemorySegment allocator(MemorySegment struct)
      Getter for field:
      ecs_allocator_t *allocator
      
    • allocator

      public static void allocator(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_allocator_t *allocator
      
    • 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()