Class ecs_http_key_value_t
java.lang.Object
com.github.elebras1.flecs.ecs_http_key_value_t
struct {
const char *key;
const char *value;
}
-
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 MemorySegmentkey(MemorySegment struct) Getter for field:const char *keystatic voidkey(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *keystatic final AddressLayoutLayout for field:const char *keystatic final longOffset for field:const char *keystatic 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 MemorySegmentvalue(MemorySegment struct) Getter for field:const char *valuestatic voidvalue(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *valuestatic final AddressLayoutLayout for field:const char *valuestatic final longOffset for field:const char *value
-
Method Details
-
layout
The layout of this struct -
key$layout
Layout for field:const char *key -
key$offset
public static final long key$offset()Offset for field:const char *key -
key
Getter for field:const char *key -
key
Setter for field:const char *key -
value$layout
Layout for field:const char *value -
value$offset
public static final long value$offset()Offset for field:const char *value -
value
Getter for field:const char *value -
value
Setter for field:const char *value -
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()
-