Class ecs_http_server_desc_t
java.lang.Object
com.github.elebras1.flecs.ecs_http_server_desc_t
struct {
ecs_http_reply_action_t callback;
void *ctx;
uint16_t port;
const char *ipaddr;
int32_t send_queue_wait_ms;
double cache_timeout;
double cache_purge_timeout;
}
-
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 doublecache_purge_timeout(MemorySegment struct) Getter for field:double cache_purge_timeoutstatic voidcache_purge_timeout(MemorySegment struct, double fieldValue) Setter for field:double cache_purge_timeoutstatic final ValueLayout.OfDoubleLayout for field:double cache_purge_timeoutstatic final longOffset for field:double cache_purge_timeoutstatic doublecache_timeout(MemorySegment struct) Getter for field:double cache_timeoutstatic voidcache_timeout(MemorySegment struct, double fieldValue) Setter for field:double cache_timeoutstatic final ValueLayout.OfDoubleLayout for field:double cache_timeoutstatic final longOffset for field:double cache_timeoutstatic MemorySegmentcallback(MemorySegment struct) Getter for field:ecs_http_reply_action_t callbackstatic voidcallback(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_http_reply_action_t callbackstatic final AddressLayoutLayout for field:ecs_http_reply_action_t callbackstatic final longOffset for field:ecs_http_reply_action_t callbackstatic MemorySegmentctx(MemorySegment struct) Getter for field:void *ctxstatic voidctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *ctxstatic final AddressLayoutLayout for field:void *ctxstatic final longOffset for field:void *ctxstatic MemorySegmentipaddr(MemorySegment struct) Getter for field:const char *ipaddrstatic voidipaddr(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *ipaddrstatic final AddressLayoutLayout for field:const char *ipaddrstatic final longOffset for field:const char *ipaddrstatic final GroupLayoutlayout()The layout of this structstatic shortport(MemorySegment struct) Getter for field:uint16_t portstatic voidport(MemorySegment struct, short fieldValue) Setter for field:uint16_t portstatic final ValueLayout.OfShortLayout for field:uint16_t portstatic final longOffset for field:uint16_t portstatic 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 intsend_queue_wait_ms(MemorySegment struct) Getter for field:int32_t send_queue_wait_msstatic voidsend_queue_wait_ms(MemorySegment struct, int fieldValue) Setter for field:int32_t send_queue_wait_msstatic final ValueLayout.OfIntLayout for field:int32_t send_queue_wait_msstatic final longOffset for field:int32_t send_queue_wait_msstatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
callback$layout
Layout for field:ecs_http_reply_action_t callback -
callback$offset
public static final long callback$offset()Offset for field:ecs_http_reply_action_t callback -
callback
Getter for field:ecs_http_reply_action_t callback -
callback
Setter for field:ecs_http_reply_action_t callback -
ctx$layout
Layout for field:void *ctx -
ctx$offset
public static final long ctx$offset()Offset for field:void *ctx -
ctx
Getter for field:void *ctx -
ctx
Setter for field:void *ctx -
port$layout
Layout for field:uint16_t port -
port$offset
public static final long port$offset()Offset for field:uint16_t port -
port
Getter for field:uint16_t port -
port
Setter for field:uint16_t port -
ipaddr$layout
Layout for field:const char *ipaddr -
ipaddr$offset
public static final long ipaddr$offset()Offset for field:const char *ipaddr -
ipaddr
Getter for field:const char *ipaddr -
ipaddr
Setter for field:const char *ipaddr -
send_queue_wait_ms$layout
Layout for field:int32_t send_queue_wait_ms -
send_queue_wait_ms$offset
public static final long send_queue_wait_ms$offset()Offset for field:int32_t send_queue_wait_ms -
send_queue_wait_ms
Getter for field:int32_t send_queue_wait_ms -
send_queue_wait_ms
Setter for field:int32_t send_queue_wait_ms -
cache_timeout$layout
Layout for field:double cache_timeout -
cache_timeout$offset
public static final long cache_timeout$offset()Offset for field:double cache_timeout -
cache_timeout
Getter for field:double cache_timeout -
cache_timeout
Setter for field:double cache_timeout -
cache_purge_timeout$layout
Layout for field:double cache_purge_timeout -
cache_purge_timeout$offset
public static final long cache_purge_timeout$offset()Offset for field:double cache_purge_timeout -
cache_purge_timeout
Getter for field:double cache_purge_timeout -
cache_purge_timeout
Setter for field:double cache_purge_timeout -
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()
-