Class ecs_metric_desc_t

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

public class ecs_metric_desc_t extends Object
struct ecs_metric_desc_t {
    int32_t _canary;
    ecs_entity_t entity;
    ecs_entity_t member;
    const char *dotmember;
    ecs_id_t id;
    _Bool targets;
    ecs_entity_t kind;
    const char *brief;
}
  • Method Details

    • layout

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

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

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

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

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

      public static final ValueLayout.OfLong entity$layout()
      Layout for field:
      ecs_entity_t entity
      
    • entity$offset

      public static final long entity$offset()
      Offset for field:
      ecs_entity_t entity
      
    • entity

      public static long entity(MemorySegment struct)
      Getter for field:
      ecs_entity_t entity
      
    • entity

      public static void entity(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t entity
      
    • member$layout

      public static final ValueLayout.OfLong member$layout()
      Layout for field:
      ecs_entity_t member
      
    • member$offset

      public static final long member$offset()
      Offset for field:
      ecs_entity_t member
      
    • member

      public static long member(MemorySegment struct)
      Getter for field:
      ecs_entity_t member
      
    • member

      public static void member(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t member
      
    • dotmember$layout

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

      public static final long dotmember$offset()
      Offset for field:
      const char *dotmember
      
    • dotmember

      public static MemorySegment dotmember(MemorySegment struct)
      Getter for field:
      const char *dotmember
      
    • dotmember

      public static void dotmember(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *dotmember
      
    • id$layout

      public static final ValueLayout.OfLong id$layout()
      Layout for field:
      ecs_id_t id
      
    • id$offset

      public static final long id$offset()
      Offset for field:
      ecs_id_t id
      
    • id

      public static long id(MemorySegment struct)
      Getter for field:
      ecs_id_t id
      
    • id

      public static void id(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_id_t id
      
    • targets$layout

      public static final ValueLayout.OfBoolean targets$layout()
      Layout for field:
      _Bool targets
      
    • targets$offset

      public static final long targets$offset()
      Offset for field:
      _Bool targets
      
    • targets

      public static boolean targets(MemorySegment struct)
      Getter for field:
      _Bool targets
      
    • targets

      public static void targets(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool targets
      
    • kind$layout

      public static final ValueLayout.OfLong kind$layout()
      Layout for field:
      ecs_entity_t kind
      
    • kind$offset

      public static final long kind$offset()
      Offset for field:
      ecs_entity_t kind
      
    • kind

      public static long kind(MemorySegment struct)
      Getter for field:
      ecs_entity_t kind
      
    • kind

      public static void kind(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t kind
      
    • brief$layout

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

      public static final long brief$offset()
      Offset for field:
      const char *brief
      
    • brief

      public static MemorySegment brief(MemorySegment struct)
      Getter for field:
      const char *brief
      
    • brief

      public static void brief(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *brief
      
    • 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()