Class EcsRateFilter
java.lang.Object
com.github.elebras1.flecs.EcsRateFilter
struct EcsRateFilter {
ecs_entity_t src;
int32_t rate;
int32_t tick_count;
float time_elapsed;
}
-
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 final GroupLayoutlayout()The layout of this structstatic intrate(MemorySegment struct) Getter for field:int32_t ratestatic voidrate(MemorySegment struct, int fieldValue) Setter for field:int32_t ratestatic final ValueLayout.OfIntLayout for field:int32_t ratestatic final longOffset for field:int32_t ratestatic 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 longsrc(MemorySegment struct) Getter for field:ecs_entity_t srcstatic voidsrc(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t srcstatic final ValueLayout.OfLongLayout for field:ecs_entity_t srcstatic final longOffset for field:ecs_entity_t srcstatic inttick_count(MemorySegment struct) Getter for field:int32_t tick_countstatic voidtick_count(MemorySegment struct, int fieldValue) Setter for field:int32_t tick_countstatic final ValueLayout.OfIntLayout for field:int32_t tick_countstatic final longOffset for field:int32_t tick_countstatic floattime_elapsed(MemorySegment struct) Getter for field:float time_elapsedstatic voidtime_elapsed(MemorySegment struct, float fieldValue) Setter for field:float time_elapsedstatic final ValueLayout.OfFloatLayout for field:float time_elapsedstatic final longOffset for field:float time_elapsed
-
Method Details
-
layout
The layout of this struct -
src$layout
Layout for field:ecs_entity_t src -
src$offset
public static final long src$offset()Offset for field:ecs_entity_t src -
src
Getter for field:ecs_entity_t src -
src
Setter for field:ecs_entity_t src -
rate$layout
Layout for field:int32_t rate -
rate$offset
public static final long rate$offset()Offset for field:int32_t rate -
rate
Getter for field:int32_t rate -
rate
Setter for field:int32_t rate -
tick_count$layout
Layout for field:int32_t tick_count -
tick_count$offset
public static final long tick_count$offset()Offset for field:int32_t tick_count -
tick_count
Getter for field:int32_t tick_count -
tick_count
Setter for field:int32_t tick_count -
time_elapsed$layout
Layout for field:float time_elapsed -
time_elapsed$offset
public static final long time_elapsed$offset()Offset for field:float time_elapsed -
time_elapsed
Getter for field:float time_elapsed -
time_elapsed
Setter for field:float time_elapsed -
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()
-