Class __mbstate_t

java.lang.Object
smile.torch.__mbstate_t

public class __mbstate_t extends Object
union {
    char __mbstate8[128];
    long long _mbstateL;
}
  • Method Details

    • layout

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

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

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

      public static MemorySegment __mbstate8(MemorySegment union)
      Getter for field:
      char __mbstate8[128]
      
    • __mbstate8

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

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

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

      public static void __mbstate8(MemorySegment union, long index0, byte fieldValue)
      Indexed setter for field:
      char __mbstate8[128]
      
    • _mbstateL$layout

      public static final ValueLayout.OfLong _mbstateL$layout()
      Layout for field:
      long long _mbstateL
      
    • _mbstateL$offset

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

      public static long _mbstateL(MemorySegment union)
      Getter for field:
      long long _mbstateL
      
    • _mbstateL

      public static void _mbstateL(MemorySegment union, long fieldValue)
      Setter for field:
      long long _mbstateL
      
    • 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()