Class ecs_cpp_get_mut_t

java.lang.Object
com.github.elebras1.flecs.ecs_cpp_get_mut_t

public class ecs_cpp_get_mut_t extends Object
struct ecs_cpp_get_mut_t {
    void *ptr;
    _Bool call_modified;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • ptr$layout

      public static final AddressLayout ptr$layout()
      Layout for field:
      void *ptr
      
    • ptr$offset

      public static final long ptr$offset()
      Offset for field:
      void *ptr
      
    • ptr

      public static MemorySegment ptr(MemorySegment struct)
      Getter for field:
      void *ptr
      
    • ptr

      public static void ptr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *ptr
      
    • call_modified$layout

      public static final ValueLayout.OfBoolean call_modified$layout()
      Layout for field:
      _Bool call_modified
      
    • call_modified$offset

      public static final long call_modified$offset()
      Offset for field:
      _Bool call_modified
      
    • call_modified

      public static boolean call_modified(MemorySegment struct)
      Getter for field:
      _Bool call_modified
      
    • call_modified

      public static void call_modified(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool call_modified
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()