Class ecs_world_to_json_desc_t

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

public class ecs_world_to_json_desc_t extends Object
struct ecs_world_to_json_desc_t {
    _Bool serialize_builtin;
    _Bool serialize_modules;
}
  • Method Details

    • layout

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

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

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

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

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

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

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

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

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