Class ecs_query_memory_t

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

public class ecs_query_memory_t extends Object
struct {
    int32_t count;
    int32_t cached_count;
    ecs_size_t bytes_query;
    ecs_size_t bytes_cache;
    ecs_size_t bytes_group_by;
    ecs_size_t bytes_order_by;
    ecs_size_t bytes_plan;
    ecs_size_t bytes_terms;
    ecs_size_t bytes_misc;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

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

      public static final long bytes_query$offset()
      Offset for field:
      ecs_size_t bytes_query
      
    • bytes_query

      public static int bytes_query(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_query
      
    • bytes_query

      public static void bytes_query(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_query
      
    • bytes_cache$layout

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

      public static final long bytes_cache$offset()
      Offset for field:
      ecs_size_t bytes_cache
      
    • bytes_cache

      public static int bytes_cache(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_cache
      
    • bytes_cache

      public static void bytes_cache(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_cache
      
    • bytes_group_by$layout

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

      public static final long bytes_group_by$offset()
      Offset for field:
      ecs_size_t bytes_group_by
      
    • bytes_group_by

      public static int bytes_group_by(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_group_by
      
    • bytes_group_by

      public static void bytes_group_by(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_group_by
      
    • bytes_order_by$layout

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

      public static final long bytes_order_by$offset()
      Offset for field:
      ecs_size_t bytes_order_by
      
    • bytes_order_by

      public static int bytes_order_by(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_order_by
      
    • bytes_order_by

      public static void bytes_order_by(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_order_by
      
    • bytes_plan$layout

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

      public static final long bytes_plan$offset()
      Offset for field:
      ecs_size_t bytes_plan
      
    • bytes_plan

      public static int bytes_plan(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_plan
      
    • bytes_plan

      public static void bytes_plan(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_plan
      
    • bytes_terms$layout

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

      public static final long bytes_terms$offset()
      Offset for field:
      ecs_size_t bytes_terms
      
    • bytes_terms

      public static int bytes_terms(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_terms
      
    • bytes_terms

      public static void bytes_terms(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_terms
      
    • bytes_misc$layout

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

      public static final long bytes_misc$offset()
      Offset for field:
      ecs_size_t bytes_misc
      
    • bytes_misc

      public static int bytes_misc(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_misc
      
    • bytes_misc

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