ImportMemory property

\brief Import external memory.

The EP creates a derived type of OrtExternalMemoryHandle and returns a pointer to the base. EP is responsible for the lifetime of the handle (release via ReleaseMemory).

\paramin this_ptr Pointer to the OrtExternalResourceImporterImpl instance. \paramin desc Descriptor containing the external memory handle and properties. \paramout out_handle Output parameter set to the created OrtExternalMemoryHandle (EP's derived type).

\snippet{doc} snippets.dox OrtStatus Return Value

\since Version 1.24.

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    OrtStatusPtr Function(
      ffi.Pointer<OrtExternalResourceImporterImpl> this_ptr,
      ffi.Pointer<OrtExternalMemoryDescriptor> desc,
      ffi.Pointer<ffi.Pointer<OrtExternalMemoryHandle>> out_handle,
    )
  >
>
ImportMemory;