Class ecs_table_record_t

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

public class ecs_table_record_t extends Object
struct ecs_table_record_t {
    ecs_table_cache_hdr_t hdr;
    int16_t index;
    int16_t count;
    int16_t column;
}
  • Method Details

    • layout

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

      public static final GroupLayout hdr$layout()
      Layout for field:
      ecs_table_cache_hdr_t hdr
      
    • hdr$offset

      public static final long hdr$offset()
      Offset for field:
      ecs_table_cache_hdr_t hdr
      
    • hdr

      public static MemorySegment hdr(MemorySegment struct)
      Getter for field:
      ecs_table_cache_hdr_t hdr
      
    • hdr

      public static void hdr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_table_cache_hdr_t hdr
      
    • index$layout

      public static final ValueLayout.OfShort index$layout()
      Layout for field:
      int16_t index
      
    • index$offset

      public static final long index$offset()
      Offset for field:
      int16_t index
      
    • index

      public static short index(MemorySegment struct)
      Getter for field:
      int16_t index
      
    • index

      public static void index(MemorySegment struct, short fieldValue)
      Setter for field:
      int16_t index
      
    • count$layout

      public static final ValueLayout.OfShort count$layout()
      Layout for field:
      int16_t count
      
    • count$offset

      public static final long count$offset()
      Offset for field:
      int16_t count
      
    • count

      public static short count(MemorySegment struct)
      Getter for field:
      int16_t count
      
    • count

      public static void count(MemorySegment struct, short fieldValue)
      Setter for field:
      int16_t count
      
    • column$layout

      public static final ValueLayout.OfShort column$layout()
      Layout for field:
      int16_t column
      
    • column$offset

      public static final long column$offset()
      Offset for field:
      int16_t column
      
    • column

      public static short column(MemorySegment struct)
      Getter for field:
      int16_t column
      
    • column

      public static void column(MemorySegment struct, short fieldValue)
      Setter for field:
      int16_t column
      
    • 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()