OrtWriteBufferFunc typedef

\brief Function called by ORT to write a buffer to a custom destination (e.g., file, stream, etc.).

\param state Opaque pointer holding the user's state. \param buffer The buffer to write. \param buffer_num_bytes The size of the buffer in bytes.

\return OrtStatus* Write status. Return nullptr on success. Use CreateStatus to provide error info. Use ORT_FAIL as the error code. ORT will release the OrtStatus* if not null.

Implementation

typedef OrtWriteBufferFunc =
    ffi.Pointer<ffi.NativeFunction<OrtWriteBufferFuncFunction>>;