Class ecs_entities_memory_t

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

public class ecs_entities_memory_t extends Object
struct {
    int32_t alive_count;
    int32_t not_alive_count;
    ecs_size_t bytes_entity_index;
    ecs_size_t bytes_names;
    ecs_size_t bytes_doc_strings;
}
  • Method Details

    • layout

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

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

      public static final long alive_count$offset()
      Offset for field:
      int32_t alive_count
      
    • alive_count

      public static int alive_count(MemorySegment struct)
      Getter for field:
      int32_t alive_count
      
    • alive_count

      public static void alive_count(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t alive_count
      
    • not_alive_count$layout

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

      public static final long not_alive_count$offset()
      Offset for field:
      int32_t not_alive_count
      
    • not_alive_count

      public static int not_alive_count(MemorySegment struct)
      Getter for field:
      int32_t not_alive_count
      
    • not_alive_count

      public static void not_alive_count(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t not_alive_count
      
    • bytes_entity_index$layout

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

      public static final long bytes_entity_index$offset()
      Offset for field:
      ecs_size_t bytes_entity_index
      
    • bytes_entity_index

      public static int bytes_entity_index(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_entity_index
      
    • bytes_entity_index

      public static void bytes_entity_index(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_entity_index
      
    • bytes_names$layout

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

      public static final long bytes_names$offset()
      Offset for field:
      ecs_size_t bytes_names
      
    • bytes_names

      public static int bytes_names(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_names
      
    • bytes_names

      public static void bytes_names(MemorySegment struct, int fieldValue)
      Setter for field:
      ecs_size_t bytes_names
      
    • bytes_doc_strings$layout

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

      public static final long bytes_doc_strings$offset()
      Offset for field:
      ecs_size_t bytes_doc_strings
      
    • bytes_doc_strings

      public static int bytes_doc_strings(MemorySegment struct)
      Getter for field:
      ecs_size_t bytes_doc_strings
      
    • bytes_doc_strings

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