Class ecs_stack_t

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

public class ecs_stack_t extends Object
struct ecs_stack_t {
    ecs_stack_page_t *first;
    ecs_stack_page_t *tail_page;
    ecs_stack_cursor_t *tail_cursor;
    int32_t cursor_count;
}
  • Method Details

    • layout

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

      public static final AddressLayout first$layout()
      Layout for field:
      ecs_stack_page_t *first
      
    • first$offset

      public static final long first$offset()
      Offset for field:
      ecs_stack_page_t *first
      
    • first

      public static MemorySegment first(MemorySegment struct)
      Getter for field:
      ecs_stack_page_t *first
      
    • first

      public static void first(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_stack_page_t *first
      
    • tail_page$layout

      public static final AddressLayout tail_page$layout()
      Layout for field:
      ecs_stack_page_t *tail_page
      
    • tail_page$offset

      public static final long tail_page$offset()
      Offset for field:
      ecs_stack_page_t *tail_page
      
    • tail_page

      public static MemorySegment tail_page(MemorySegment struct)
      Getter for field:
      ecs_stack_page_t *tail_page
      
    • tail_page

      public static void tail_page(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_stack_page_t *tail_page
      
    • tail_cursor$layout

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

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

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

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

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

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

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

      public static void cursor_count(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t cursor_count
      
    • 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()