Class ecs_meta_cursor_t
java.lang.Object
com.github.elebras1.flecs.ecs_meta_cursor_t
struct ecs_meta_cursor_t {
const ecs_world_t *world;
ecs_meta_scope_t scope[32];
int16_t depth;
_Bool valid;
_Bool is_primitive_scope;
ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *);
void *lookup_ctx;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *) -
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 shortdepth(MemorySegment struct) Getter for field:int16_t depthstatic voiddepth(MemorySegment struct, short fieldValue) Setter for field:int16_t depthstatic final ValueLayout.OfShortLayout for field:int16_t depthstatic final longOffset for field:int16_t depthstatic booleanis_primitive_scope(MemorySegment struct) Getter for field:_Bool is_primitive_scopestatic voidis_primitive_scope(MemorySegment struct, boolean fieldValue) Setter for field:_Bool is_primitive_scopestatic final ValueLayout.OfBooleanLayout for field:_Bool is_primitive_scopestatic final longOffset for field:_Bool is_primitive_scopestatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentlookup_action(MemorySegment struct) Getter for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)static voidlookup_action(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)static final AddressLayoutLayout for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)static final longOffset for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *)static MemorySegmentlookup_ctx(MemorySegment struct) Getter for field:void *lookup_ctxstatic voidlookup_ctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *lookup_ctxstatic final AddressLayoutLayout for field:void *lookup_ctxstatic final longOffset for field:void *lookup_ctxstatic 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 MemorySegmentscope(MemorySegment struct) Getter for field:ecs_meta_scope_t scope[32]static MemorySegmentscope(MemorySegment struct, long index0) Indexed getter for field:ecs_meta_scope_t scope[32]static voidscope(MemorySegment struct, long index0, MemorySegment fieldValue) Indexed setter for field:ecs_meta_scope_t scope[32]static voidscope(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_meta_scope_t scope[32]static long[]Dimensions for array field:ecs_meta_scope_t scope[32]static final SequenceLayoutLayout for field:ecs_meta_scope_t scope[32]static final longOffset for field:ecs_meta_scope_t scope[32]static longsizeof()The size (in bytes) of this structstatic booleanvalid(MemorySegment struct) Getter for field:_Bool validstatic voidvalid(MemorySegment struct, boolean fieldValue) Setter for field:_Bool validstatic final ValueLayout.OfBooleanLayout for field:_Bool validstatic final longOffset for field:_Bool validstatic MemorySegmentworld(MemorySegment struct) Getter for field:const ecs_world_t *worldstatic voidworld(MemorySegment struct, MemorySegment fieldValue) Setter for field:const ecs_world_t *worldstatic final AddressLayoutLayout for field:const ecs_world_t *worldstatic final longOffset for field:const ecs_world_t *world
-
Method Details
-
layout
The layout of this struct -
world$layout
Layout for field:const ecs_world_t *world -
world$offset
public static final long world$offset()Offset for field:const ecs_world_t *world -
world
Getter for field:const ecs_world_t *world -
world
Setter for field:const ecs_world_t *world -
scope$layout
Layout for field:ecs_meta_scope_t scope[32] -
scope$offset
public static final long scope$offset()Offset for field:ecs_meta_scope_t scope[32] -
scope
Getter for field:ecs_meta_scope_t scope[32] -
scope
Setter for field:ecs_meta_scope_t scope[32] -
scope$dimensions
public static long[] scope$dimensions()Dimensions for array field:ecs_meta_scope_t scope[32] -
scope
Indexed getter for field:ecs_meta_scope_t scope[32] -
scope
Indexed setter for field:ecs_meta_scope_t scope[32] -
depth$layout
Layout for field:int16_t depth -
depth$offset
public static final long depth$offset()Offset for field:int16_t depth -
depth
Getter for field:int16_t depth -
depth
Setter for field:int16_t depth -
valid$layout
Layout for field:_Bool valid -
valid$offset
public static final long valid$offset()Offset for field:_Bool valid -
valid
Getter for field:_Bool valid -
valid
Setter for field:_Bool valid -
is_primitive_scope$layout
Layout for field:_Bool is_primitive_scope -
is_primitive_scope$offset
public static final long is_primitive_scope$offset()Offset for field:_Bool is_primitive_scope -
is_primitive_scope
Getter for field:_Bool is_primitive_scope -
is_primitive_scope
Setter for field:_Bool is_primitive_scope -
lookup_action$layout
Layout for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *) -
lookup_action$offset
public static final long lookup_action$offset()Offset for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *) -
lookup_action
Getter for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *) -
lookup_action
Setter for field:ecs_entity_t (*lookup_action)(ecs_world_t *, const char *, void *) -
lookup_ctx$layout
Layout for field:void *lookup_ctx -
lookup_ctx$offset
public static final long lookup_ctx$offset()Offset for field:void *lookup_ctx -
lookup_ctx
Getter for field:void *lookup_ctx -
lookup_ctx
Setter for field:void *lookup_ctx -
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()
-