Class ecs_strbuf_t

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

public class ecs_strbuf_t extends Object
struct ecs_strbuf_t {
    char *content;
    ecs_size_t length;
    ecs_size_t size;
    ecs_strbuf_list_elem list_stack[32];
    int32_t list_sp;
    char small_string[512];
}
  • Method Details

    • layout

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

      public static final AddressLayout content$layout()
      Layout for field:
      char *content
      
    • content$offset

      public static final long content$offset()
      Offset for field:
      char *content
      
    • content

      public static MemorySegment content(MemorySegment struct)
      Getter for field:
      char *content
      
    • content

      public static void content(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char *content
      
    • length$layout

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

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

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

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

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

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

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

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

      public static final SequenceLayout list_stack$layout()
      Layout for field:
      ecs_strbuf_list_elem list_stack[32]
      
    • list_stack$offset

      public static final long list_stack$offset()
      Offset for field:
      ecs_strbuf_list_elem list_stack[32]
      
    • list_stack

      public static MemorySegment list_stack(MemorySegment struct)
      Getter for field:
      ecs_strbuf_list_elem list_stack[32]
      
    • list_stack

      public static void list_stack(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_strbuf_list_elem list_stack[32]
      
    • list_stack$dimensions

      public static long[] list_stack$dimensions()
      Dimensions for array field:
      ecs_strbuf_list_elem list_stack[32]
      
    • list_stack

      public static MemorySegment list_stack(MemorySegment struct, long index0)
      Indexed getter for field:
      ecs_strbuf_list_elem list_stack[32]
      
    • list_stack

      public static void list_stack(MemorySegment struct, long index0, MemorySegment fieldValue)
      Indexed setter for field:
      ecs_strbuf_list_elem list_stack[32]
      
    • list_sp$layout

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

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

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

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

      public static final SequenceLayout small_string$layout()
      Layout for field:
      char small_string[512]
      
    • small_string$offset

      public static final long small_string$offset()
      Offset for field:
      char small_string[512]
      
    • small_string

      public static MemorySegment small_string(MemorySegment struct)
      Getter for field:
      char small_string[512]
      
    • small_string

      public static void small_string(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      char small_string[512]
      
    • small_string$dimensions

      public static long[] small_string$dimensions()
      Dimensions for array field:
      char small_string[512]
      
    • small_string

      public static byte small_string(MemorySegment struct, long index0)
      Indexed getter for field:
      char small_string[512]
      
    • small_string

      public static void small_string(MemorySegment struct, long index0, byte fieldValue)
      Indexed setter for field:
      char small_string[512]
      
    • 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()