Class ecs_event_desc_t
java.lang.Object
com.github.elebras1.flecs.ecs_event_desc_t
struct ecs_event_desc_t {
ecs_entity_t event;
const ecs_type_t *ids;
ecs_table_t *table;
ecs_table_t *other_table;
int32_t offset;
int32_t count;
ecs_entity_t entity;
void *param;
const void *const_param;
ecs_poly_t *observable;
ecs_flags32_t flags;
}
-
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 MemorySegmentconst_param(MemorySegment struct) Getter for field:const void *const_paramstatic voidconst_param(MemorySegment struct, MemorySegment fieldValue) Setter for field:const void *const_paramstatic final AddressLayoutLayout for field:const void *const_paramstatic final longOffset for field:const void *const_paramstatic intcount(MemorySegment struct) Getter for field:int32_t countstatic voidcount(MemorySegment struct, int fieldValue) Setter for field:int32_t countstatic final ValueLayout.OfIntLayout for field:int32_t countstatic final longOffset for field:int32_t countstatic longentity(MemorySegment struct) Getter for field:ecs_entity_t entitystatic voidentity(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t entitystatic final ValueLayout.OfLongLayout for field:ecs_entity_t entitystatic final longOffset for field:ecs_entity_t entitystatic longevent(MemorySegment struct) Getter for field:ecs_entity_t eventstatic voidevent(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t eventstatic final ValueLayout.OfLongLayout for field:ecs_entity_t eventstatic final longOffset for field:ecs_entity_t eventstatic intflags(MemorySegment struct) Getter for field:ecs_flags32_t flagsstatic voidflags(MemorySegment struct, int fieldValue) Setter for field:ecs_flags32_t flagsstatic final ValueLayout.OfIntLayout for field:ecs_flags32_t flagsstatic final longOffset for field:ecs_flags32_t flagsstatic MemorySegmentids(MemorySegment struct) Getter for field:const ecs_type_t *idsstatic voidids(MemorySegment struct, MemorySegment fieldValue) Setter for field:const ecs_type_t *idsstatic final AddressLayoutLayout for field:const ecs_type_t *idsstatic final longOffset for field:const ecs_type_t *idsstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentobservable(MemorySegment struct) Getter for field:ecs_poly_t *observablestatic voidobservable(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_poly_t *observablestatic final AddressLayoutLayout for field:ecs_poly_t *observablestatic final longOffset for field:ecs_poly_t *observablestatic intoffset(MemorySegment struct) Getter for field:int32_t offsetstatic voidoffset(MemorySegment struct, int fieldValue) Setter for field:int32_t offsetstatic final ValueLayout.OfIntLayout for field:int32_t offsetstatic final longOffset for field:int32_t offsetstatic MemorySegmentother_table(MemorySegment struct) Getter for field:ecs_table_t *other_tablestatic voidother_table(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_table_t *other_tablestatic final AddressLayoutLayout for field:ecs_table_t *other_tablestatic final longOffset for field:ecs_table_t *other_tablestatic MemorySegmentparam(MemorySegment struct) Getter for field:void *paramstatic voidparam(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *paramstatic final AddressLayoutLayout for field:void *paramstatic final longOffset for field:void *paramstatic 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 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 -
event$layout
Layout for field:ecs_entity_t event -
event$offset
public static final long event$offset()Offset for field:ecs_entity_t event -
event
Getter for field:ecs_entity_t event -
event
Setter for field:ecs_entity_t event -
ids$layout
Layout for field:const ecs_type_t *ids -
ids$offset
public static final long ids$offset()Offset for field:const ecs_type_t *ids -
ids
Getter for field:const ecs_type_t *ids -
ids
Setter for field:const ecs_type_t *ids -
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 -
other_table$layout
Layout for field:ecs_table_t *other_table -
other_table$offset
public static final long other_table$offset()Offset for field:ecs_table_t *other_table -
other_table
Getter for field:ecs_table_t *other_table -
other_table
Setter for field:ecs_table_t *other_table -
offset$layout
Layout for field:int32_t offset -
offset$offset
public static final long offset$offset()Offset for field:int32_t offset -
offset
Getter for field:int32_t offset -
offset
Setter for field:int32_t offset -
count$layout
Layout for field:int32_t count -
count$offset
public static final long count$offset()Offset for field:int32_t count -
count
Getter for field:int32_t count -
count
Setter for field:int32_t count -
entity$layout
Layout for field:ecs_entity_t entity -
entity$offset
public static final long entity$offset()Offset for field:ecs_entity_t entity -
entity
Getter for field:ecs_entity_t entity -
entity
Setter for field:ecs_entity_t entity -
param$layout
Layout for field:void *param -
param$offset
public static final long param$offset()Offset for field:void *param -
param
Getter for field:void *param -
param
Setter for field:void *param -
const_param$layout
Layout for field:const void *const_param -
const_param$offset
public static final long const_param$offset()Offset for field:const void *const_param -
const_param
Getter for field:const void *const_param -
const_param
Setter for field:const void *const_param -
observable$layout
Layout for field:ecs_poly_t *observable -
observable$offset
public static final long observable$offset()Offset for field:ecs_poly_t *observable -
observable
Getter for field:ecs_poly_t *observable -
observable
Setter for field:ecs_poly_t *observable -
flags$layout
Layout for field:ecs_flags32_t flags -
flags$offset
public static final long flags$offset()Offset for field:ecs_flags32_t flags -
flags
Getter for field:ecs_flags32_t flags -
flags
Setter for field:ecs_flags32_t flags -
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()
-