Class ecs_rest_ctx_t

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

public class ecs_rest_ctx_t extends Object
struct {
    ecs_world_t *world;
    ecs_http_server_t *srv;
    int32_t rc;
    ecs_map_t cmd_captures;
    double last_time;
}
  • Method Details

    • layout

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

      public static final AddressLayout world$layout()
      Layout for field:
      ecs_world_t *world
      
    • world$offset

      public static final long world$offset()
      Offset for field:
      ecs_world_t *world
      
    • world

      public static MemorySegment world(MemorySegment struct)
      Getter for field:
      ecs_world_t *world
      
    • world

      public static void world(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_world_t *world
      
    • srv$layout

      public static final AddressLayout srv$layout()
      Layout for field:
      ecs_http_server_t *srv
      
    • srv$offset

      public static final long srv$offset()
      Offset for field:
      ecs_http_server_t *srv
      
    • srv

      public static MemorySegment srv(MemorySegment struct)
      Getter for field:
      ecs_http_server_t *srv
      
    • srv

      public static void srv(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_http_server_t *srv
      
    • rc$layout

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

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

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

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

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

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

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

      public static void cmd_captures(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_map_t cmd_captures
      
    • last_time$layout

      public static final ValueLayout.OfDouble last_time$layout()
      Layout for field:
      double last_time
      
    • last_time$offset

      public static final long last_time$offset()
      Offset for field:
      double last_time
      
    • last_time

      public static double last_time(MemorySegment struct)
      Getter for field:
      double last_time
      
    • last_time

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