Class ecs_http_request_t
java.lang.Object
com.github.elebras1.flecs.ecs_http_request_t
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 Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentbody(MemorySegment struct) Getter for field:char *bodystatic voidbody(MemorySegment struct, MemorySegment fieldValue) Setter for field:char *bodystatic final AddressLayoutLayout for field:char *bodystatic final longOffset for field:char *bodystatic MemorySegmentconn(MemorySegment struct) Getter for field:ecs_http_connection_t *connstatic voidconn(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_http_connection_t *connstatic final AddressLayoutLayout for field:ecs_http_connection_t *connstatic final longOffset for field:ecs_http_connection_t *connstatic intheader_count(MemorySegment struct) Getter for field:int32_t header_countstatic voidheader_count(MemorySegment struct, int fieldValue) Setter for field:int32_t header_countstatic final ValueLayout.OfIntLayout for field:int32_t header_countstatic final longOffset for field:int32_t header_countstatic MemorySegmentheaders(MemorySegment struct) Getter for field:ecs_http_key_value_t headers[32]static MemorySegmentheaders(MemorySegment struct, long index0) Indexed getter for field:ecs_http_key_value_t headers[32]static voidheaders(MemorySegment struct, long index0, MemorySegment fieldValue) Indexed setter for field:ecs_http_key_value_t headers[32]static voidheaders(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_http_key_value_t headers[32]static long[]Dimensions for array field:ecs_http_key_value_t headers[32]static final SequenceLayoutLayout for field:ecs_http_key_value_t headers[32]static final longOffset for field:ecs_http_key_value_t headers[32]static longid(MemorySegment struct) Getter for field:uint64_t idstatic voidid(MemorySegment struct, long fieldValue) Setter for field:uint64_t idstatic final ValueLayout.OfLongLayout for field:uint64_t idstatic final longOffset for field:uint64_t idstatic final GroupLayoutlayout()The layout of this structstatic intmethod(MemorySegment struct) Getter for field:ecs_http_method_t methodstatic voidmethod(MemorySegment struct, int fieldValue) Setter for field:ecs_http_method_t methodstatic final ValueLayout.OfIntLayout for field:ecs_http_method_t methodstatic final longOffset for field:ecs_http_method_t methodstatic intparam_count(MemorySegment struct) Getter for field:int32_t param_countstatic voidparam_count(MemorySegment struct, int fieldValue) Setter for field:int32_t param_countstatic final ValueLayout.OfIntLayout for field:int32_t param_countstatic final longOffset for field:int32_t param_countstatic MemorySegmentparams(MemorySegment struct) Getter for field:ecs_http_key_value_t params[32]static MemorySegmentparams(MemorySegment struct, long index0) Indexed getter for field:ecs_http_key_value_t params[32]static voidparams(MemorySegment struct, long index0, MemorySegment fieldValue) Indexed setter for field:ecs_http_key_value_t params[32]static voidparams(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_http_key_value_t params[32]static long[]Dimensions for array field:ecs_http_key_value_t params[32]static final SequenceLayoutLayout for field:ecs_http_key_value_t params[32]static final longOffset for field:ecs_http_key_value_t params[32]static MemorySegmentpath(MemorySegment struct) Getter for field:char *pathstatic voidpath(MemorySegment struct, MemorySegment fieldValue) Setter for field:char *pathstatic final AddressLayoutLayout for field:char *pathstatic final longOffset for field:char *pathstatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
id$layout
Layout for field:uint64_t id -
id$offset
public static final long id$offset()Offset for field:uint64_t id -
id
Getter for field:uint64_t id -
id
Setter for field:uint64_t id -
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
Getter for field:ecs_http_method_t method -
method
Setter for field:ecs_http_method_t method -
path$layout
Layout for field:char *path -
path$offset
public static final long path$offset()Offset for field:char *path -
path
Getter for field:char *path -
path
Setter for field:char *path -
body$layout
Layout for field:char *body -
body$offset
public static final long body$offset()Offset for field:char *body -
body
Getter for field:char *body -
body
Setter for field:char *body -
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
Getter for field:ecs_http_key_value_t headers[32] -
headers
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
Indexed getter for field:ecs_http_key_value_t headers[32] -
headers
Indexed setter for field:ecs_http_key_value_t headers[32] -
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
Getter for field:ecs_http_key_value_t params[32] -
params
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
Indexed getter for field:ecs_http_key_value_t params[32] -
params
Indexed setter for field:ecs_http_key_value_t params[32] -
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
Getter for field:int32_t header_count -
header_count
Setter for field:int32_t header_count -
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
Getter for field:int32_t param_count -
param_count
Setter for field:int32_t param_count -
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
Getter for field:ecs_http_connection_t *conn -
conn
Setter for field:ecs_http_connection_t *conn -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-