Class ecs_meta_op_t.is

java.lang.Object
com.github.elebras1.flecs.ecs_meta_op_t.is
Enclosing class:
ecs_meta_op_t

public static class ecs_meta_op_t.is extends Object
union {
    ecs_hashmap_t *members;
    ecs_map_t *constants;
    ecs_meta_serialize_t opaque;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this union
    • members$layout

      public static final AddressLayout members$layout()
      Layout for field:
      ecs_hashmap_t *members
      
    • members$offset

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

      public static MemorySegment members(MemorySegment union)
      Getter for field:
      ecs_hashmap_t *members
      
    • members

      public static void members(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      ecs_hashmap_t *members
      
    • constants$layout

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

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

      public static MemorySegment constants(MemorySegment union)
      Getter for field:
      ecs_map_t *constants
      
    • constants

      public static void constants(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      ecs_map_t *constants
      
    • opaque$layout

      public static final AddressLayout opaque$layout()
      Layout for field:
      ecs_meta_serialize_t opaque
      
    • opaque$offset

      public static final long opaque$offset()
      Offset for field:
      ecs_meta_serialize_t opaque
      
    • opaque

      public static MemorySegment opaque(MemorySegment union)
      Getter for field:
      ecs_meta_serialize_t opaque
      
    • opaque

      public static void opaque(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      ecs_meta_serialize_t opaque
      
    • 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 union
    • 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()