Class ecs_http_request_t

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

public class ecs_http_request_t extends Object
struct {
    uint64_t id;
    ecs_http_method_t method;
    char *path;
    char *body;
    ecs_http_key_value_t headers[32];
    ecs_http_key_value_t params[32];
    int32_t header_count;
    int32_t param_count;
    ecs_http_connection_t *conn;
}
  • Method Details

    • layout

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

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

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

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

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

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

      public static final long method$offset()
      Offset for field:
      ecs_http_method_t method
      
    • method

      public static int method(MemorySegment struct)
      Getter for field:
      ecs_http_method_t method
      
    • method

      public static void method(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_http_method_t method
      
    • path$layout

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

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

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

      public static void path(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *path
      
    • body$layout

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

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

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

      public static void body(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *body
      
    • headers$layout

      public static final SequenceLayout headers$layout()
      Layout for field:
      ecs_http_key_value_t headers[32]
      
    • headers$offset

      public static final long headers$offset()
      Offset for field:
      ecs_http_key_value_t headers[32]
      
    • headers

      public static MemorySegment headers(MemorySegment struct)
      Getter for field:
      ecs_http_key_value_t headers[32]
      
    • headers

      public static void headers(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_http_key_value_t headers[32]
      
    • headers$dimensions

      public static long[] headers$dimensions()
      Dimensions for array field:
      ecs_http_key_value_t headers[32]
      
    • headers

      public static MemorySegment headers(MemorySegment struct, long index0)
      Indexed getter for field:
      ecs_http_key_value_t headers[32]
      
    • headers

      public static void headers(MemorySegment struct, long index0, MemorySegment fieldValue)
      Indexed setter for field:
      ecs_http_key_value_t headers[32]
      
    • params$layout

      public static final SequenceLayout params$layout()
      Layout for field:
      ecs_http_key_value_t params[32]
      
    • params$offset

      public static final long params$offset()
      Offset for field:
      ecs_http_key_value_t params[32]
      
    • params

      public static MemorySegment params(MemorySegment struct)
      Getter for field:
      ecs_http_key_value_t params[32]
      
    • params

      public static void params(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_http_key_value_t params[32]
      
    • params$dimensions

      public static long[] params$dimensions()
      Dimensions for array field:
      ecs_http_key_value_t params[32]
      
    • params

      public static MemorySegment params(MemorySegment struct, long index0)
      Indexed getter for field:
      ecs_http_key_value_t params[32]
      
    • params

      public static void params(MemorySegment struct, long index0, MemorySegment fieldValue)
      Indexed setter for field:
      ecs_http_key_value_t params[32]
      
    • header_count$layout

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

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

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

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

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

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

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

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

      public static final AddressLayout conn$layout()
      Layout for field:
      ecs_http_connection_t *conn
      
    • conn$offset

      public static final long conn$offset()
      Offset for field:
      ecs_http_connection_t *conn
      
    • conn

      public static MemorySegment conn(MemorySegment struct)
      Getter for field:
      ecs_http_connection_t *conn
      
    • conn

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