Class ecs_hashmap_t

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

public class ecs_hashmap_t extends Object
struct {
    ecs_hash_value_action_t hash;
    ecs_compare_action_t compare;
    ecs_size_t key_size;
    ecs_size_t value_size;
    ecs_map_t impl;
}
  • Method Details

    • layout

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

      public static final AddressLayout hash$layout()
      Layout for field:
      ecs_hash_value_action_t hash
      
    • hash$offset

      public static final long hash$offset()
      Offset for field:
      ecs_hash_value_action_t hash
      
    • hash

      public static MemorySegment hash(MemorySegment struct)
      Getter for field:
      ecs_hash_value_action_t hash
      
    • hash

      public static void hash(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_hash_value_action_t hash
      
    • compare$layout

      public static final AddressLayout compare$layout()
      Layout for field:
      ecs_compare_action_t compare
      
    • compare$offset

      public static final long compare$offset()
      Offset for field:
      ecs_compare_action_t compare
      
    • compare

      public static MemorySegment compare(MemorySegment struct)
      Getter for field:
      ecs_compare_action_t compare
      
    • compare

      public static void compare(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_compare_action_t compare
      
    • key_size$layout

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

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

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

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

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

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

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

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

      public static final GroupLayout impl$layout()
      Layout for field:
      ecs_map_t impl
      
    • impl$offset

      public static final long impl$offset()
      Offset for field:
      ecs_map_t impl
      
    • impl

      public static MemorySegment impl(MemorySegment struct)
      Getter for field:
      ecs_map_t impl
      
    • impl

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