Class __mbstate_t.__value

java.lang.Object
io.github.elebras1.flecs.__mbstate_t.__value
Enclosing class:
__mbstate_t

public static class __mbstate_t.__value extends Object
union {
    unsigned int __wch;
    char __wchb[4];
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this union
    • __wch$layout

      public static final ValueLayout.OfInt __wch$layout()
      Layout for field:
      unsigned int __wch
      
    • __wch$offset

      public static final long __wch$offset()
      Offset for field:
      unsigned int __wch
      
    • __wch

      public static int __wch(MemorySegment union)
      Getter for field:
      unsigned int __wch
      
    • __wch

      public static void __wch(MemorySegment union, int fieldValue)
      Setter for field:
      unsigned int __wch
      
    • __wchb$layout

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

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

      public static MemorySegment __wchb(MemorySegment union)
      Getter for field:
      char __wchb[4]
      
    • __wchb

      public static void __wchb(MemorySegment union, MemorySegment fieldValue)
      Setter for field:
      char __wchb[4]
      
    • __wchb$dimensions

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

      public static byte __wchb(MemorySegment union, long index0)
      Indexed getter for field:
      char __wchb[4]
      
    • __wchb

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