Class ecs_entity_desc_t
java.lang.Object
com.github.elebras1.flecs.ecs_entity_desc_t
struct ecs_entity_desc_t {
int32_t _canary;
ecs_entity_t id;
ecs_entity_t parent;
const char *name;
const char *sep;
const char *root_sep;
const char *symbol;
_Bool use_low_id;
const ecs_id_t *add;
const ecs_value_t *set;
const char *add_expr;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic int_canary(MemorySegment struct) Getter for field:int32_t _canarystatic void_canary(MemorySegment struct, int fieldValue) Setter for field:int32_t _canarystatic final ValueLayout.OfIntLayout for field:int32_t _canarystatic final longOffset for field:int32_t _canarystatic MemorySegmentadd(MemorySegment struct) Getter for field:const ecs_id_t *addstatic voidadd(MemorySegment struct, MemorySegment fieldValue) Setter for field:const ecs_id_t *addstatic MemorySegmentadd_expr(MemorySegment struct) Getter for field:const char *add_exprstatic voidadd_expr(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *add_exprstatic final AddressLayoutLayout for field:const char *add_exprstatic final longOffset for field:const char *add_exprstatic final AddressLayoutLayout for field:const ecs_id_t *addstatic final longOffset for field:const ecs_id_t *addstatic 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 longid(MemorySegment struct) Getter for field:ecs_entity_t idstatic voidid(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t idstatic final ValueLayout.OfLongLayout for field:ecs_entity_t idstatic final longOffset for field:ecs_entity_t idstatic final GroupLayoutlayout()The layout of this structstatic MemorySegmentname(MemorySegment struct) Getter for field:const char *namestatic voidname(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *namestatic final AddressLayoutLayout for field:const char *namestatic final longOffset for field:const char *namestatic longparent(MemorySegment struct) Getter for field:ecs_entity_t parentstatic voidparent(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t parentstatic final ValueLayout.OfLongLayout for field:ecs_entity_t parentstatic final longOffset for field:ecs_entity_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 MemorySegmentroot_sep(MemorySegment struct) Getter for field:const char *root_sepstatic voidroot_sep(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *root_sepstatic final AddressLayoutLayout for field:const char *root_sepstatic final longOffset for field:const char *root_sepstatic MemorySegmentsep(MemorySegment struct) Getter for field:const char *sepstatic voidsep(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *sepstatic final AddressLayoutLayout for field:const char *sepstatic final longOffset for field:const char *sepstatic MemorySegmentset(MemorySegment struct) Getter for field:const ecs_value_t *setstatic voidset(MemorySegment struct, MemorySegment fieldValue) Setter for field:const ecs_value_t *setstatic final AddressLayoutLayout for field:const ecs_value_t *setstatic final longOffset for field:const ecs_value_t *setstatic longsizeof()The size (in bytes) of this structstatic MemorySegmentsymbol(MemorySegment struct) Getter for field:const char *symbolstatic voidsymbol(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *symbolstatic final AddressLayoutLayout for field:const char *symbolstatic final longOffset for field:const char *symbolstatic booleanuse_low_id(MemorySegment struct) Getter for field:_Bool use_low_idstatic voiduse_low_id(MemorySegment struct, boolean fieldValue) Setter for field:_Bool use_low_idstatic final ValueLayout.OfBooleanLayout for field:_Bool use_low_idstatic final longOffset for field:_Bool use_low_id
-
Method Details
-
layout
The layout of this struct -
_canary$layout
Layout for field:int32_t _canary -
_canary$offset
public static final long _canary$offset()Offset for field:int32_t _canary -
_canary
Getter for field:int32_t _canary -
_canary
Setter for field:int32_t _canary -
id$layout
Layout for field:ecs_entity_t id -
id$offset
public static final long id$offset()Offset for field:ecs_entity_t id -
id
Getter for field:ecs_entity_t id -
id
Setter for field:ecs_entity_t id -
parent$layout
Layout for field:ecs_entity_t parent -
parent$offset
public static final long parent$offset()Offset for field:ecs_entity_t parent -
parent
Getter for field:ecs_entity_t parent -
parent
Setter for field:ecs_entity_t parent -
name$layout
Layout for field:const char *name -
name$offset
public static final long name$offset()Offset for field:const char *name -
name
Getter for field:const char *name -
name
Setter for field:const char *name -
sep$layout
Layout for field:const char *sep -
sep$offset
public static final long sep$offset()Offset for field:const char *sep -
sep
Getter for field:const char *sep -
sep
Setter for field:const char *sep -
root_sep$layout
Layout for field:const char *root_sep -
root_sep$offset
public static final long root_sep$offset()Offset for field:const char *root_sep -
root_sep
Getter for field:const char *root_sep -
root_sep
Setter for field:const char *root_sep -
symbol$layout
Layout for field:const char *symbol -
symbol$offset
public static final long symbol$offset()Offset for field:const char *symbol -
symbol
Getter for field:const char *symbol -
symbol
Setter for field:const char *symbol -
use_low_id$layout
Layout for field:_Bool use_low_id -
use_low_id$offset
public static final long use_low_id$offset()Offset for field:_Bool use_low_id -
use_low_id
Getter for field:_Bool use_low_id -
use_low_id
Setter for field:_Bool use_low_id -
add$layout
Layout for field:const ecs_id_t *add -
add$offset
public static final long add$offset()Offset for field:const ecs_id_t *add -
add
Getter for field:const ecs_id_t *add -
add
Setter for field:const ecs_id_t *add -
set$layout
Layout for field:const ecs_value_t *set -
set$offset
public static final long set$offset()Offset for field:const ecs_value_t *set -
set
Getter for field:const ecs_value_t *set -
set
Setter for field:const ecs_value_t *set -
add_expr$layout
Layout for field:const char *add_expr -
add_expr$offset
public static final long add_expr$offset()Offset for field:const char *add_expr -
add_expr
Getter for field:const char *add_expr -
add_expr
Setter for field:const char *add_expr -
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()
-