GetApi property

Pointer<NativeFunction<Pointer<OrtApi> Function(Uint32 version)>> GetApi
getter/setter pair

\brief Get a pointer to the requested version of the ::OrtApi

\paramin version Must be ::ORT_API_VERSION \return The ::OrtApi for the version requested, nullptr will be returned if this version is unsupported, for example when using a runtime older than the version created with this header file.

One can call GetVersionString() to get the version of the Onnxruntime library for logging and error reporting purposes.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<ffi.Pointer<OrtApi> Function(ffi.Uint32 version)>
>
GetApi;