Class ecs_http_connection_t
java.lang.Object
com.github.elebras1.flecs.ecs_http_connection_t
struct {
uint64_t id;
ecs_http_server_t *server;
char host[128];
char port[16];
}
-
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 MemorySegmenthost(MemorySegment struct) Getter for field:char host[128]static bytehost(MemorySegment struct, long index0) Indexed getter for field:char host[128]static voidhost(MemorySegment struct, long index0, byte fieldValue) Indexed setter for field:char host[128]static voidhost(MemorySegment struct, MemorySegment fieldValue) Setter for field:char host[128]static long[]Dimensions for array field:char host[128]static final SequenceLayoutLayout for field:char host[128]static final longOffset for field:char host[128]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 MemorySegmentport(MemorySegment struct) Getter for field:char port[16]static byteport(MemorySegment struct, long index0) Indexed getter for field:char port[16]static voidport(MemorySegment struct, long index0, byte fieldValue) Indexed setter for field:char port[16]static voidport(MemorySegment struct, MemorySegment fieldValue) Setter for field:char port[16]static long[]Dimensions for array field:char port[16]static final SequenceLayoutLayout for field:char port[16]static final longOffset for field:char port[16]static 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 MemorySegmentserver(MemorySegment struct) Getter for field:ecs_http_server_t *serverstatic voidserver(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_http_server_t *serverstatic final AddressLayoutLayout for field:ecs_http_server_t *serverstatic final longOffset for field:ecs_http_server_t *serverstatic 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 -
server$layout
Layout for field:ecs_http_server_t *server -
server$offset
public static final long server$offset()Offset for field:ecs_http_server_t *server -
server
Getter for field:ecs_http_server_t *server -
server
Setter for field:ecs_http_server_t *server -
host$layout
Layout for field:char host[128] -
host$offset
public static final long host$offset()Offset for field:char host[128] -
host
Getter for field:char host[128] -
host
Setter for field:char host[128] -
host$dimensions
public static long[] host$dimensions()Dimensions for array field:char host[128] -
host
Indexed getter for field:char host[128] -
host
Indexed setter for field:char host[128] -
port$layout
Layout for field:char port[16] -
port$offset
public static final long port$offset()Offset for field:char port[16] -
port
Getter for field:char port[16] -
port
Setter for field:char port[16] -
port$dimensions
public static long[] port$dimensions()Dimensions for array field:char port[16] -
port
Indexed getter for field:char port[16] -
port
Indexed setter for field:char port[16] -
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()
-