Reserve property

Pointer<NativeFunction<Pointer<Void> Function(Pointer<OrtAllocator> this_, Size size)>> Reserve
getter/setter pair

@brief Optional allocation function to use for memory allocations made during session initialization. Use this function if you want to separate allocations made by ORT during Run() calls from those made during session initialization. This allows for separate memory management strategies for these allocations.

\return pointer to an allocated block of size bytes. nullptr if size was 0 or allocation failed.

\since 1.18

Implementation

external ffi.Pointer<
  ffi.NativeFunction<
    ffi.Pointer<ffi.Void> Function(
      ffi.Pointer<OrtAllocator> this_,
      ffi.Size size,
    )
  >
>
Reserve;