Class ecs_entities_memory_t
java.lang.Object
com.github.elebras1.flecs.ecs_entities_memory_t
struct {
int32_t alive_count;
int32_t not_alive_count;
ecs_size_t bytes_entity_index;
ecs_size_t bytes_names;
ecs_size_t bytes_doc_strings;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic intalive_count(MemorySegment struct) Getter for field:int32_t alive_countstatic voidalive_count(MemorySegment struct, int fieldValue) Setter for field:int32_t alive_countstatic final ValueLayout.OfIntLayout for field:int32_t alive_countstatic final longOffset for field:int32_t alive_countstatic 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 intbytes_doc_strings(MemorySegment struct) Getter for field:ecs_size_t bytes_doc_stringsstatic voidbytes_doc_strings(MemorySegment struct, int fieldValue) Setter for field:ecs_size_t bytes_doc_stringsstatic final ValueLayout.OfIntLayout for field:ecs_size_t bytes_doc_stringsstatic final longOffset for field:ecs_size_t bytes_doc_stringsstatic intbytes_entity_index(MemorySegment struct) Getter for field:ecs_size_t bytes_entity_indexstatic voidbytes_entity_index(MemorySegment struct, int fieldValue) Setter for field:ecs_size_t bytes_entity_indexstatic final ValueLayout.OfIntLayout for field:ecs_size_t bytes_entity_indexstatic final longOffset for field:ecs_size_t bytes_entity_indexstatic intbytes_names(MemorySegment struct) Getter for field:ecs_size_t bytes_namesstatic voidbytes_names(MemorySegment struct, int fieldValue) Setter for field:ecs_size_t bytes_namesstatic final ValueLayout.OfIntLayout for field:ecs_size_t bytes_namesstatic final longOffset for field:ecs_size_t bytes_namesstatic final GroupLayoutlayout()The layout of this structstatic intnot_alive_count(MemorySegment struct) Getter for field:int32_t not_alive_countstatic voidnot_alive_count(MemorySegment struct, int fieldValue) Setter for field:int32_t not_alive_countstatic final ValueLayout.OfIntLayout for field:int32_t not_alive_countstatic final longOffset for field:int32_t not_alive_countstatic 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 struct
-
Method Details
-
layout
The layout of this struct -
alive_count$layout
Layout for field:int32_t alive_count -
alive_count$offset
public static final long alive_count$offset()Offset for field:int32_t alive_count -
alive_count
Getter for field:int32_t alive_count -
alive_count
Setter for field:int32_t alive_count -
not_alive_count$layout
Layout for field:int32_t not_alive_count -
not_alive_count$offset
public static final long not_alive_count$offset()Offset for field:int32_t not_alive_count -
not_alive_count
Getter for field:int32_t not_alive_count -
not_alive_count
Setter for field:int32_t not_alive_count -
bytes_entity_index$layout
Layout for field:ecs_size_t bytes_entity_index -
bytes_entity_index$offset
public static final long bytes_entity_index$offset()Offset for field:ecs_size_t bytes_entity_index -
bytes_entity_index
Getter for field:ecs_size_t bytes_entity_index -
bytes_entity_index
Setter for field:ecs_size_t bytes_entity_index -
bytes_names$layout
Layout for field:ecs_size_t bytes_names -
bytes_names$offset
public static final long bytes_names$offset()Offset for field:ecs_size_t bytes_names -
bytes_names
Getter for field:ecs_size_t bytes_names -
bytes_names
Setter for field:ecs_size_t bytes_names -
bytes_doc_strings$layout
Layout for field:ecs_size_t bytes_doc_strings -
bytes_doc_strings$offset
public static final long bytes_doc_strings$offset()Offset for field:ecs_size_t bytes_doc_strings -
bytes_doc_strings
Getter for field:ecs_size_t bytes_doc_strings -
bytes_doc_strings
Setter for field:ecs_size_t bytes_doc_strings -
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()
-