Class ecs_counter_t
java.lang.Object
com.github.elebras1.flecs.ecs_counter_t
struct ecs_counter_t {
ecs_gauge_t rate;
double value[60];
}
-
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 MemorySegmentrate(MemorySegment struct) Getter for field:ecs_gauge_t ratestatic voidrate(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_gauge_t ratestatic final GroupLayoutLayout for field:ecs_gauge_t ratestatic final longOffset for field:ecs_gauge_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 MemorySegmentvalue(MemorySegment struct) Getter for field:double value[60]static doublevalue(MemorySegment struct, long index0) Indexed getter for field:double value[60]static voidvalue(MemorySegment struct, long index0, double fieldValue) Indexed setter for field:double value[60]static voidvalue(MemorySegment struct, MemorySegment fieldValue) Setter for field:double value[60]static long[]Dimensions for array field:double value[60]static final SequenceLayoutLayout for field:double value[60]static final longOffset for field:double value[60]
-
Method Details
-
layout
The layout of this struct -
rate$layout
Layout for field:ecs_gauge_t rate -
rate$offset
public static final long rate$offset()Offset for field:ecs_gauge_t rate -
rate
Getter for field:ecs_gauge_t rate -
rate
Setter for field:ecs_gauge_t rate -
value$layout
Layout for field:double value[60] -
value$offset
public static final long value$offset()Offset for field:double value[60] -
value
Getter for field:double value[60] -
value
Setter for field:double value[60] -
value$dimensions
public static long[] value$dimensions()Dimensions for array field:double value[60] -
value
Indexed getter for field:double value[60] -
value
Indexed setter for field:double value[60] -
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()
-