Class ecs_table_diff_t

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

public class ecs_table_diff_t extends Object
struct ecs_table_diff_t {
    ecs_type_t added;
    ecs_type_t removed;
    ecs_flags32_t added_flags;
    ecs_flags32_t removed_flags;
}
  • Method Details

    • layout

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

      public static final GroupLayout added$layout()
      Layout for field:
      ecs_type_t added
      
    • added$offset

      public static final long added$offset()
      Offset for field:
      ecs_type_t added
      
    • added

      public static MemorySegment added(MemorySegment struct)
      Getter for field:
      ecs_type_t added
      
    • added

      public static void added(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_type_t added
      
    • removed$layout

      public static final GroupLayout removed$layout()
      Layout for field:
      ecs_type_t removed
      
    • removed$offset

      public static final long removed$offset()
      Offset for field:
      ecs_type_t removed
      
    • removed

      public static MemorySegment removed(MemorySegment struct)
      Getter for field:
      ecs_type_t removed
      
    • removed

      public static void removed(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_type_t removed
      
    • added_flags$layout

      public static final ValueLayout.OfInt added_flags$layout()
      Layout for field:
      ecs_flags32_t added_flags
      
    • added_flags$offset

      public static final long added_flags$offset()
      Offset for field:
      ecs_flags32_t added_flags
      
    • added_flags

      public static int added_flags(MemorySegment struct)
      Getter for field:
      ecs_flags32_t added_flags
      
    • added_flags

      public static void added_flags(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t added_flags
      
    • removed_flags$layout

      public static final ValueLayout.OfInt removed_flags$layout()
      Layout for field:
      ecs_flags32_t removed_flags
      
    • removed_flags$offset

      public static final long removed_flags$offset()
      Offset for field:
      ecs_flags32_t removed_flags
      
    • removed_flags

      public static int removed_flags(MemorySegment struct)
      Getter for field:
      ecs_flags32_t removed_flags
      
    • removed_flags

      public static void removed_flags(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_flags32_t removed_flags
      
    • 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()