Class ecs_record_t
java.lang.Object
com.github.elebras1.flecs.ecs_record_t
struct ecs_record_t {
ecs_component_record_t *cr;
ecs_table_t *table;
uint32_t row;
int32_t dense;
}
-
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 MemorySegmentcr(MemorySegment struct) Getter for field:ecs_component_record_t *crstatic voidcr(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_component_record_t *crstatic final AddressLayoutLayout for field:ecs_component_record_t *crstatic final longOffset for field:ecs_component_record_t *crstatic intdense(MemorySegment struct) Getter for field:int32_t densestatic voiddense(MemorySegment struct, int fieldValue) Setter for field:int32_t densestatic final ValueLayout.OfIntLayout for field:int32_t densestatic final longOffset for field:int32_t densestatic 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 introw(MemorySegment struct) Getter for field:uint32_t rowstatic voidrow(MemorySegment struct, int fieldValue) Setter for field:uint32_t rowstatic final ValueLayout.OfIntLayout for field:uint32_t rowstatic final longOffset for field:uint32_t rowstatic longsizeof()The size (in bytes) of this structstatic MemorySegmenttable(MemorySegment struct) Getter for field:ecs_table_t *tablestatic voidtable(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_table_t *tablestatic final AddressLayoutLayout for field:ecs_table_t *tablestatic final longOffset for field:ecs_table_t *table
-
Method Details
-
layout
The layout of this struct -
cr$layout
Layout for field:ecs_component_record_t *cr -
cr$offset
public static final long cr$offset()Offset for field:ecs_component_record_t *cr -
cr
Getter for field:ecs_component_record_t *cr -
cr
Setter for field:ecs_component_record_t *cr -
table$layout
Layout for field:ecs_table_t *table -
table$offset
public static final long table$offset()Offset for field:ecs_table_t *table -
table
Getter for field:ecs_table_t *table -
table
Setter for field:ecs_table_t *table -
row$layout
Layout for field:uint32_t row -
row$offset
public static final long row$offset()Offset for field:uint32_t row -
row
Getter for field:uint32_t row -
row
Setter for field:uint32_t row -
dense$layout
Layout for field:int32_t dense -
dense$offset
public static final long dense$offset()Offset for field:int32_t dense -
dense
Getter for field:int32_t dense -
dense
Setter for field:int32_t dense -
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()
-