Class ecs_script_vars_t
java.lang.Object
com.github.elebras1.flecs.ecs_script_vars_t
struct ecs_script_vars_t {
struct ecs_script_vars_t *parent;
int32_t sp;
ecs_hashmap_t var_index;
ecs_vec_t vars;
const ecs_world_t *world;
struct ecs_stack_t *stack;
ecs_stack_cursor_t *cursor;
ecs_allocator_t *allocator;
}
-
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 MemorySegmentallocator(MemorySegment struct) Getter for field:ecs_allocator_t *allocatorstatic voidallocator(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_allocator_t *allocatorstatic final AddressLayoutLayout for field:ecs_allocator_t *allocatorstatic final longOffset for field:ecs_allocator_t *allocatorstatic MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentcursor(MemorySegment struct) Getter for field:ecs_stack_cursor_t *cursorstatic voidcursor(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_stack_cursor_t *cursorstatic final AddressLayoutLayout for field:ecs_stack_cursor_t *cursorstatic final longOffset for field:ecs_stack_cursor_t *cursorstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentparent(MemorySegment struct) Getter for field:struct ecs_script_vars_t *parentstatic voidparent(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct ecs_script_vars_t *parentstatic final AddressLayoutLayout for field:struct ecs_script_vars_t *parentstatic final longOffset for field:struct ecs_script_vars_t *parentstatic 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 intsp(MemorySegment struct) Getter for field:int32_t spstatic voidsp(MemorySegment struct, int fieldValue) Setter for field:int32_t spstatic final ValueLayout.OfIntLayout for field:int32_t spstatic final longOffset for field:int32_t spstatic MemorySegmentstack(MemorySegment struct) Getter for field:struct ecs_stack_t *stackstatic voidstack(MemorySegment struct, MemorySegment fieldValue) Setter for field:struct ecs_stack_t *stackstatic final AddressLayoutLayout for field:struct ecs_stack_t *stackstatic final longOffset for field:struct ecs_stack_t *stackstatic MemorySegmentvar_index(MemorySegment struct) Getter for field:ecs_hashmap_t var_indexstatic voidvar_index(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_hashmap_t var_indexstatic final GroupLayoutLayout for field:ecs_hashmap_t var_indexstatic final longOffset for field:ecs_hashmap_t var_indexstatic MemorySegmentvars(MemorySegment struct) Getter for field:ecs_vec_t varsstatic voidvars(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_vec_t varsstatic final GroupLayoutLayout for field:ecs_vec_t varsstatic final longOffset for field:ecs_vec_t varsstatic 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 -
parent$layout
Layout for field:struct ecs_script_vars_t *parent -
parent$offset
public static final long parent$offset()Offset for field:struct ecs_script_vars_t *parent -
parent
Getter for field:struct ecs_script_vars_t *parent -
parent
Setter for field:struct ecs_script_vars_t *parent -
sp$layout
Layout for field:int32_t sp -
sp$offset
public static final long sp$offset()Offset for field:int32_t sp -
sp
Getter for field:int32_t sp -
sp
Setter for field:int32_t sp -
var_index$layout
Layout for field:ecs_hashmap_t var_index -
var_index$offset
public static final long var_index$offset()Offset for field:ecs_hashmap_t var_index -
var_index
Getter for field:ecs_hashmap_t var_index -
var_index
Setter for field:ecs_hashmap_t var_index -
vars$layout
Layout for field:ecs_vec_t vars -
vars$offset
public static final long vars$offset()Offset for field:ecs_vec_t vars -
vars
Getter for field:ecs_vec_t vars -
vars
Setter for field:ecs_vec_t vars -
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 -
stack$layout
Layout for field:struct ecs_stack_t *stack -
stack$offset
public static final long stack$offset()Offset for field:struct ecs_stack_t *stack -
stack
Getter for field:struct ecs_stack_t *stack -
stack
Setter for field:struct ecs_stack_t *stack -
cursor$layout
Layout for field:ecs_stack_cursor_t *cursor -
cursor$offset
public static final long cursor$offset()Offset for field:ecs_stack_cursor_t *cursor -
cursor
Getter for field:ecs_stack_cursor_t *cursor -
cursor
Setter for field:ecs_stack_cursor_t *cursor -
allocator$layout
Layout for field:ecs_allocator_t *allocator -
allocator$offset
public static final long allocator$offset()Offset for field:ecs_allocator_t *allocator -
allocator
Getter for field:ecs_allocator_t *allocator -
allocator
Setter for field:ecs_allocator_t *allocator -
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()
-