Class ecs_stack_t
java.lang.Object
com.github.elebras1.flecs.ecs_stack_t
struct ecs_stack_t {
ecs_stack_page_t *first;
ecs_stack_page_t *tail_page;
ecs_stack_cursor_t *tail_cursor;
int32_t cursor_count;
}
-
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 intcursor_count(MemorySegment struct) Getter for field:int32_t cursor_countstatic voidcursor_count(MemorySegment struct, int fieldValue) Setter for field:int32_t cursor_countstatic final ValueLayout.OfIntLayout for field:int32_t cursor_countstatic final longOffset for field:int32_t cursor_countstatic MemorySegmentfirst(MemorySegment struct) Getter for field:ecs_stack_page_t *firststatic voidfirst(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_stack_page_t *firststatic final AddressLayoutLayout for field:ecs_stack_page_t *firststatic final longOffset for field:ecs_stack_page_t *firststatic 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 MemorySegmenttail_cursor(MemorySegment struct) Getter for field:ecs_stack_cursor_t *tail_cursorstatic voidtail_cursor(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_stack_cursor_t *tail_cursorstatic final AddressLayoutLayout for field:ecs_stack_cursor_t *tail_cursorstatic final longOffset for field:ecs_stack_cursor_t *tail_cursorstatic MemorySegmenttail_page(MemorySegment struct) Getter for field:ecs_stack_page_t *tail_pagestatic voidtail_page(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_stack_page_t *tail_pagestatic final AddressLayoutLayout for field:ecs_stack_page_t *tail_pagestatic final longOffset for field:ecs_stack_page_t *tail_page
-
Method Details
-
layout
The layout of this struct -
first$layout
Layout for field:ecs_stack_page_t *first -
first$offset
public static final long first$offset()Offset for field:ecs_stack_page_t *first -
first
Getter for field:ecs_stack_page_t *first -
first
Setter for field:ecs_stack_page_t *first -
tail_page$layout
Layout for field:ecs_stack_page_t *tail_page -
tail_page$offset
public static final long tail_page$offset()Offset for field:ecs_stack_page_t *tail_page -
tail_page
Getter for field:ecs_stack_page_t *tail_page -
tail_page
Setter for field:ecs_stack_page_t *tail_page -
tail_cursor$layout
Layout for field:ecs_stack_cursor_t *tail_cursor -
tail_cursor$offset
public static final long tail_cursor$offset()Offset for field:ecs_stack_cursor_t *tail_cursor -
tail_cursor
Getter for field:ecs_stack_cursor_t *tail_cursor -
tail_cursor
Setter for field:ecs_stack_cursor_t *tail_cursor -
cursor_count$layout
Layout for field:int32_t cursor_count -
cursor_count$offset
public static final long cursor_count$offset()Offset for field:int32_t cursor_count -
cursor_count
Getter for field:int32_t cursor_count -
cursor_count
Setter for field:int32_t cursor_count -
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()
-