Class OrtSyncStreamImpl

java.lang.Object
smile.onnx.foreign.OrtSyncStreamImpl

public class OrtSyncStreamImpl extends Object
struct OrtSyncStreamImpl {
    uint32_t ort_version_supported;
    void (*Release)(OrtSyncStreamImpl *);
    void *(*GetHandle)(OrtSyncStreamImpl *);
    OrtStatusPtr (*CreateNotification)(OrtSyncStreamImpl *, OrtSyncNotificationImpl **);
    OrtStatusPtr (*Flush)(OrtSyncStreamImpl *);
    OrtStatusPtr (*OnSessionRunEnd)(OrtSyncStreamImpl *);
}
  • Method Details

    • layout

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

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

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

      public static int ort_version_supported(MemorySegment struct)
      Getter for field:
      uint32_t ort_version_supported
      
    • ort_version_supported

      public static void ort_version_supported(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t ort_version_supported
      
    • Release$layout

      public static final AddressLayout Release$layout()
      Layout for field:
      void (*Release)(OrtSyncStreamImpl *)
      
    • Release$offset

      public static final long Release$offset()
      Offset for field:
      void (*Release)(OrtSyncStreamImpl *)
      
    • Release

      public static MemorySegment Release(MemorySegment struct)
      Getter for field:
      void (*Release)(OrtSyncStreamImpl *)
      
    • Release

      public static void Release(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void (*Release)(OrtSyncStreamImpl *)
      
    • GetHandle$layout

      public static final AddressLayout GetHandle$layout()
      Layout for field:
      void *(*GetHandle)(OrtSyncStreamImpl *)
      
    • GetHandle$offset

      public static final long GetHandle$offset()
      Offset for field:
      void *(*GetHandle)(OrtSyncStreamImpl *)
      
    • GetHandle

      public static MemorySegment GetHandle(MemorySegment struct)
      Getter for field:
      void *(*GetHandle)(OrtSyncStreamImpl *)
      
    • GetHandle

      public static void GetHandle(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *(*GetHandle)(OrtSyncStreamImpl *)
      
    • CreateNotification$layout

      public static final AddressLayout CreateNotification$layout()
      Layout for field:
      OrtStatusPtr (*CreateNotification)(OrtSyncStreamImpl *, OrtSyncNotificationImpl **)
      
    • CreateNotification$offset

      public static final long CreateNotification$offset()
      Offset for field:
      OrtStatusPtr (*CreateNotification)(OrtSyncStreamImpl *, OrtSyncNotificationImpl **)
      
    • CreateNotification

      public static MemorySegment CreateNotification(MemorySegment struct)
      Getter for field:
      OrtStatusPtr (*CreateNotification)(OrtSyncStreamImpl *, OrtSyncNotificationImpl **)
      
    • CreateNotification

      public static void CreateNotification(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      OrtStatusPtr (*CreateNotification)(OrtSyncStreamImpl *, OrtSyncNotificationImpl **)
      
    • Flush$layout

      public static final AddressLayout Flush$layout()
      Layout for field:
      OrtStatusPtr (*Flush)(OrtSyncStreamImpl *)
      
    • Flush$offset

      public static final long Flush$offset()
      Offset for field:
      OrtStatusPtr (*Flush)(OrtSyncStreamImpl *)
      
    • Flush

      public static MemorySegment Flush(MemorySegment struct)
      Getter for field:
      OrtStatusPtr (*Flush)(OrtSyncStreamImpl *)
      
    • Flush

      public static void Flush(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      OrtStatusPtr (*Flush)(OrtSyncStreamImpl *)
      
    • OnSessionRunEnd$layout

      public static final AddressLayout OnSessionRunEnd$layout()
      Layout for field:
      OrtStatusPtr (*OnSessionRunEnd)(OrtSyncStreamImpl *)
      
    • OnSessionRunEnd$offset

      public static final long OnSessionRunEnd$offset()
      Offset for field:
      OrtStatusPtr (*OnSessionRunEnd)(OrtSyncStreamImpl *)
      
    • OnSessionRunEnd

      public static MemorySegment OnSessionRunEnd(MemorySegment struct)
      Getter for field:
      OrtStatusPtr (*OnSessionRunEnd)(OrtSyncStreamImpl *)
      
    • OnSessionRunEnd

      public static void OnSessionRunEnd(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      OrtStatusPtr (*OnSessionRunEnd)(OrtSyncStreamImpl *)
      
    • 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()