Class ecs_meta_scope_t
java.lang.Object
com.github.elebras1.flecs.ecs_meta_scope_t
struct ecs_meta_scope_t {
ecs_entity_t type;
ecs_meta_op_t *ops;
int16_t ops_count;
int16_t ops_cur;
int16_t prev_depth;
void *ptr;
const EcsOpaque *opaque;
ecs_hashmap_t *members;
_Bool is_collection;
_Bool is_empty_scope;
_Bool is_moved_scope;
int32_t elem;
int32_t elem_count;
}
-
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 intelem(MemorySegment struct) Getter for field:int32_t elemstatic voidelem(MemorySegment struct, int fieldValue) Setter for field:int32_t elemstatic intelem_count(MemorySegment struct) Getter for field:int32_t elem_countstatic voidelem_count(MemorySegment struct, int fieldValue) Setter for field:int32_t elem_countstatic final ValueLayout.OfIntLayout for field:int32_t elem_countstatic final longOffset for field:int32_t elem_countstatic final ValueLayout.OfIntLayout for field:int32_t elemstatic final longOffset for field:int32_t elemstatic booleanis_collection(MemorySegment struct) Getter for field:_Bool is_collectionstatic voidis_collection(MemorySegment struct, boolean fieldValue) Setter for field:_Bool is_collectionstatic final ValueLayout.OfBooleanLayout for field:_Bool is_collectionstatic final longOffset for field:_Bool is_collectionstatic booleanis_empty_scope(MemorySegment struct) Getter for field:_Bool is_empty_scopestatic voidis_empty_scope(MemorySegment struct, boolean fieldValue) Setter for field:_Bool is_empty_scopestatic final ValueLayout.OfBooleanLayout for field:_Bool is_empty_scopestatic final longOffset for field:_Bool is_empty_scopestatic booleanis_moved_scope(MemorySegment struct) Getter for field:_Bool is_moved_scopestatic voidis_moved_scope(MemorySegment struct, boolean fieldValue) Setter for field:_Bool is_moved_scopestatic final ValueLayout.OfBooleanLayout for field:_Bool is_moved_scopestatic final longOffset for field:_Bool is_moved_scopestatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentmembers(MemorySegment struct) Getter for field:ecs_hashmap_t *membersstatic voidmembers(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_hashmap_t *membersstatic final AddressLayoutLayout for field:ecs_hashmap_t *membersstatic final longOffset for field:ecs_hashmap_t *membersstatic MemorySegmentopaque(MemorySegment struct) Getter for field:const EcsOpaque *opaquestatic voidopaque(MemorySegment struct, MemorySegment fieldValue) Setter for field:const EcsOpaque *opaquestatic final AddressLayoutLayout for field:const EcsOpaque *opaquestatic final longOffset for field:const EcsOpaque *opaquestatic MemorySegmentops(MemorySegment struct) Getter for field:ecs_meta_op_t *opsstatic voidops(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_meta_op_t *opsstatic shortops_count(MemorySegment struct) Getter for field:int16_t ops_countstatic voidops_count(MemorySegment struct, short fieldValue) Setter for field:int16_t ops_countstatic final ValueLayout.OfShortLayout for field:int16_t ops_countstatic final longOffset for field:int16_t ops_countstatic shortops_cur(MemorySegment struct) Getter for field:int16_t ops_curstatic voidops_cur(MemorySegment struct, short fieldValue) Setter for field:int16_t ops_curstatic final ValueLayout.OfShortLayout for field:int16_t ops_curstatic final longOffset for field:int16_t ops_curstatic final AddressLayoutLayout for field:ecs_meta_op_t *opsstatic final longOffset for field:ecs_meta_op_t *opsstatic shortprev_depth(MemorySegment struct) Getter for field:int16_t prev_depthstatic voidprev_depth(MemorySegment struct, short fieldValue) Setter for field:int16_t prev_depthstatic final ValueLayout.OfShortLayout for field:int16_t prev_depthstatic final longOffset for field:int16_t prev_depthstatic MemorySegmentptr(MemorySegment struct) Getter for field:void *ptrstatic voidptr(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *ptrstatic final AddressLayoutLayout for field:void *ptrstatic final longOffset for field:void *ptrstatic 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 longtype(MemorySegment struct) Getter for field:ecs_entity_t typestatic voidtype(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t typestatic final ValueLayout.OfLongLayout for field:ecs_entity_t typestatic final longOffset for field:ecs_entity_t type
-
Method Details
-
layout
The layout of this struct -
type$layout
Layout for field:ecs_entity_t type -
type$offset
public static final long type$offset()Offset for field:ecs_entity_t type -
type
Getter for field:ecs_entity_t type -
type
Setter for field:ecs_entity_t type -
ops$layout
Layout for field:ecs_meta_op_t *ops -
ops$offset
public static final long ops$offset()Offset for field:ecs_meta_op_t *ops -
ops
Getter for field:ecs_meta_op_t *ops -
ops
Setter for field:ecs_meta_op_t *ops -
ops_count$layout
Layout for field:int16_t ops_count -
ops_count$offset
public static final long ops_count$offset()Offset for field:int16_t ops_count -
ops_count
Getter for field:int16_t ops_count -
ops_count
Setter for field:int16_t ops_count -
ops_cur$layout
Layout for field:int16_t ops_cur -
ops_cur$offset
public static final long ops_cur$offset()Offset for field:int16_t ops_cur -
ops_cur
Getter for field:int16_t ops_cur -
ops_cur
Setter for field:int16_t ops_cur -
prev_depth$layout
Layout for field:int16_t prev_depth -
prev_depth$offset
public static final long prev_depth$offset()Offset for field:int16_t prev_depth -
prev_depth
Getter for field:int16_t prev_depth -
prev_depth
Setter for field:int16_t prev_depth -
ptr$layout
Layout for field:void *ptr -
ptr$offset
public static final long ptr$offset()Offset for field:void *ptr -
ptr
Getter for field:void *ptr -
ptr
Setter for field:void *ptr -
opaque$layout
Layout for field:const EcsOpaque *opaque -
opaque$offset
public static final long opaque$offset()Offset for field:const EcsOpaque *opaque -
opaque
Getter for field:const EcsOpaque *opaque -
opaque
Setter for field:const EcsOpaque *opaque -
members$layout
Layout for field:ecs_hashmap_t *members -
members$offset
public static final long members$offset()Offset for field:ecs_hashmap_t *members -
members
Getter for field:ecs_hashmap_t *members -
members
Setter for field:ecs_hashmap_t *members -
is_collection$layout
Layout for field:_Bool is_collection -
is_collection$offset
public static final long is_collection$offset()Offset for field:_Bool is_collection -
is_collection
Getter for field:_Bool is_collection -
is_collection
Setter for field:_Bool is_collection -
is_empty_scope$layout
Layout for field:_Bool is_empty_scope -
is_empty_scope$offset
public static final long is_empty_scope$offset()Offset for field:_Bool is_empty_scope -
is_empty_scope
Getter for field:_Bool is_empty_scope -
is_empty_scope
Setter for field:_Bool is_empty_scope -
is_moved_scope$layout
Layout for field:_Bool is_moved_scope -
is_moved_scope$offset
public static final long is_moved_scope$offset()Offset for field:_Bool is_moved_scope -
is_moved_scope
Getter for field:_Bool is_moved_scope -
is_moved_scope
Setter for field:_Bool is_moved_scope -
elem$layout
Layout for field:int32_t elem -
elem$offset
public static final long elem$offset()Offset for field:int32_t elem -
elem
Getter for field:int32_t elem -
elem
Setter for field:int32_t elem -
elem_count$layout
Layout for field:int32_t elem_count -
elem_count$offset
public static final long elem_count$offset()Offset for field:int32_t elem_count -
elem_count
Getter for field:int32_t elem_count -
elem_count
Setter for field:int32_t elem_count -
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()
-