Class ecs_world_to_json_desc_t
java.lang.Object
com.github.elebras1.flecs.ecs_world_to_json_desc_t
struct ecs_world_to_json_desc_t {
_Bool serialize_builtin;
_Bool serialize_modules;
}
-
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 final GroupLayoutlayout()The layout of this structstatic 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 booleanserialize_builtin(MemorySegment struct) Getter for field:_Bool serialize_builtinstatic voidserialize_builtin(MemorySegment struct, boolean fieldValue) Setter for field:_Bool serialize_builtinstatic final ValueLayout.OfBooleanLayout for field:_Bool serialize_builtinstatic final longOffset for field:_Bool serialize_builtinstatic booleanserialize_modules(MemorySegment struct) Getter for field:_Bool serialize_modulesstatic voidserialize_modules(MemorySegment struct, boolean fieldValue) Setter for field:_Bool serialize_modulesstatic final ValueLayout.OfBooleanLayout for field:_Bool serialize_modulesstatic final longOffset for field:_Bool serialize_modulesstatic longsizeof()The size (in bytes) of this struct
-
Method Details
-
layout
The layout of this struct -
serialize_builtin$layout
Layout for field:_Bool serialize_builtin -
serialize_builtin$offset
public static final long serialize_builtin$offset()Offset for field:_Bool serialize_builtin -
serialize_builtin
Getter for field:_Bool serialize_builtin -
serialize_builtin
Setter for field:_Bool serialize_builtin -
serialize_modules$layout
Layout for field:_Bool serialize_modules -
serialize_modules$offset
public static final long serialize_modules$offset()Offset for field:_Bool serialize_modules -
serialize_modules
Getter for field:_Bool serialize_modules -
serialize_modules
Setter for field:_Bool serialize_modules -
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()
-