Class ecs_http_reply_t
java.lang.Object
com.github.elebras1.flecs.ecs_http_reply_t
struct {
int code;
ecs_strbuf_t body;
const char *status;
const char *content_type;
ecs_strbuf_t headers;
}
-
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:ecs_strbuf_t bodystatic voidbody(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_strbuf_t bodystatic final GroupLayoutLayout for field:ecs_strbuf_t bodystatic final longOffset for field:ecs_strbuf_t bodystatic intcode(MemorySegment struct) Getter for field:int codestatic voidcode(MemorySegment struct, int fieldValue) Setter for field:int codestatic final ValueLayout.OfIntLayout for field:int codestatic final longOffset for field:int codestatic MemorySegmentcontent_type(MemorySegment struct) Getter for field:const char *content_typestatic voidcontent_type(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *content_typestatic final AddressLayoutLayout for field:const char *content_typestatic final longOffset for field:const char *content_typestatic MemorySegmentheaders(MemorySegment struct) Getter for field:ecs_strbuf_t headersstatic voidheaders(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_strbuf_t headersstatic final GroupLayoutLayout for field:ecs_strbuf_t headersstatic final longOffset for field:ecs_strbuf_t headersstatic final GroupLayoutlayout()The layout of this structstatic 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 structstatic MemorySegmentstatus(MemorySegment struct) Getter for field:const char *statusstatic voidstatus(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *statusstatic final AddressLayoutLayout for field:const char *statusstatic final longOffset for field:const char *status
-
Method Details
-
layout
The layout of this struct -
code$layout
Layout for field:int code -
code$offset
public static final long code$offset()Offset for field:int code -
code
Getter for field:int code -
code
Setter for field:int code -
body$layout
Layout for field:ecs_strbuf_t body -
body$offset
public static final long body$offset()Offset for field:ecs_strbuf_t body -
body
Getter for field:ecs_strbuf_t body -
body
Setter for field:ecs_strbuf_t body -
status$layout
Layout for field:const char *status -
status$offset
public static final long status$offset()Offset for field:const char *status -
status
Getter for field:const char *status -
status
Setter for field:const char *status -
content_type$layout
Layout for field:const char *content_type -
content_type$offset
public static final long content_type$offset()Offset for field:const char *content_type -
content_type
Getter for field:const char *content_type -
content_type
Setter for field:const char *content_type -
headers$layout
Layout for field:ecs_strbuf_t headers -
headers$offset
public static final long headers$offset()Offset for field:ecs_strbuf_t headers -
headers
Getter for field:ecs_strbuf_t headers -
headers
Setter for field:ecs_strbuf_t headers -
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()
-