Class ecs_table_record_t
java.lang.Object
com.github.elebras1.flecs.ecs_table_record_t
struct ecs_table_record_t {
ecs_table_cache_hdr_t hdr;
int16_t index;
int16_t count;
int16_t column;
}
-
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 shortcolumn(MemorySegment struct) Getter for field:int16_t columnstatic voidcolumn(MemorySegment struct, short fieldValue) Setter for field:int16_t columnstatic final ValueLayout.OfShortLayout for field:int16_t columnstatic final longOffset for field:int16_t columnstatic shortcount(MemorySegment struct) Getter for field:int16_t countstatic voidcount(MemorySegment struct, short fieldValue) Setter for field:int16_t countstatic final ValueLayout.OfShortLayout for field:int16_t countstatic final longOffset for field:int16_t countstatic MemorySegmenthdr(MemorySegment struct) Getter for field:ecs_table_cache_hdr_t hdrstatic voidhdr(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_table_cache_hdr_t hdrstatic final GroupLayoutLayout for field:ecs_table_cache_hdr_t hdrstatic final longOffset for field:ecs_table_cache_hdr_t hdrstatic shortindex(MemorySegment struct) Getter for field:int16_t indexstatic voidindex(MemorySegment struct, short fieldValue) Setter for field:int16_t indexstatic final ValueLayout.OfShortLayout for field:int16_t indexstatic final longOffset for field:int16_t indexstatic 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 struct
-
Method Details
-
layout
The layout of this struct -
hdr$layout
Layout for field:ecs_table_cache_hdr_t hdr -
hdr$offset
public static final long hdr$offset()Offset for field:ecs_table_cache_hdr_t hdr -
hdr
Getter for field:ecs_table_cache_hdr_t hdr -
hdr
Setter for field:ecs_table_cache_hdr_t hdr -
index$layout
Layout for field:int16_t index -
index$offset
public static final long index$offset()Offset for field:int16_t index -
index
Getter for field:int16_t index -
index
Setter for field:int16_t index -
count$layout
Layout for field:int16_t count -
count$offset
public static final long count$offset()Offset for field:int16_t count -
count
Getter for field:int16_t count -
count
Setter for field:int16_t count -
column$layout
Layout for field:int16_t column -
column$offset
public static final long column$offset()Offset for field:int16_t column -
column
Getter for field:int16_t column -
column
Setter for field:int16_t column -
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()
-