Class ecs_map_iter_t

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

public class ecs_map_iter_t extends Object
struct ecs_map_iter_t {
    const ecs_map_t *map;
    ecs_bucket_t *bucket;
    ecs_bucket_entry_t *entry;
    ecs_map_data_t *res;
    int32_t change_count;
}
  • Method Details

    • layout

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

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

      public static final long map$offset()
      Offset for field:
      const ecs_map_t *map
      
    • map

      public static MemorySegment map(MemorySegment struct)
      Getter for field:
      const ecs_map_t *map
      
    • map

      public static void map(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const ecs_map_t *map
      
    • bucket$layout

      public static final AddressLayout bucket$layout()
      Layout for field:
      ecs_bucket_t *bucket
      
    • bucket$offset

      public static final long bucket$offset()
      Offset for field:
      ecs_bucket_t *bucket
      
    • bucket

      public static MemorySegment bucket(MemorySegment struct)
      Getter for field:
      ecs_bucket_t *bucket
      
    • bucket

      public static void bucket(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_bucket_t *bucket
      
    • entry$layout

      public static final AddressLayout entry$layout()
      Layout for field:
      ecs_bucket_entry_t *entry
      
    • entry$offset

      public static final long entry$offset()
      Offset for field:
      ecs_bucket_entry_t *entry
      
    • entry

      public static MemorySegment entry(MemorySegment struct)
      Getter for field:
      ecs_bucket_entry_t *entry
      
    • entry

      public static void entry(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_bucket_entry_t *entry
      
    • res$layout

      public static final AddressLayout res$layout()
      Layout for field:
      ecs_map_data_t *res
      
    • res$offset

      public static final long res$offset()
      Offset for field:
      ecs_map_data_t *res
      
    • res

      public static MemorySegment res(MemorySegment struct)
      Getter for field:
      ecs_map_data_t *res
      
    • res

      public static void res(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_map_data_t *res
      
    • change_count$layout

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

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

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

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