Class ecs_from_json_desc_t

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

public class ecs_from_json_desc_t extends Object
struct ecs_from_json_desc_t {
    const char *name;
    const char *expr;
    ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *);
    void *lookup_ctx;
    _Bool strict;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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

      public static final AddressLayout lookup_action$layout()
      Layout for field:
      ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)
      
    • lookup_action$offset

      public static final long lookup_action$offset()
      Offset for field:
      ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)
      
    • lookup_action

      public static MemorySegment lookup_action(MemorySegment struct)
      Getter for field:
      ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)
      
    • lookup_action

      public static void lookup_action(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)
      
    • lookup_ctx$layout

      public static final AddressLayout lookup_ctx$layout()
      Layout for field:
      void *lookup_ctx
      
    • lookup_ctx$offset

      public static final long lookup_ctx$offset()
      Offset for field:
      void *lookup_ctx
      
    • lookup_ctx

      public static MemorySegment lookup_ctx(MemorySegment struct)
      Getter for field:
      void *lookup_ctx
      
    • lookup_ctx

      public static void lookup_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *lookup_ctx
      
    • strict$layout

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

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

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

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