pub unsafe extern "C" fn suit_handle_manifest_buf(
    buffer: *const u8,
    size: size_t
) -> c_int
Expand description

@brief Trigger a SUIT update on an in-memory manifest

@note Make sure the thread calling this function has enough stack space to fit a whole flash page.

This function accesses global state shared with @ref suit_handle_url; only one of those may be called at the same time. You may use @ref suit_worker_try_prepare / @ref suit_worker_trigger_prepared instead, which manage locking and also do away with the stack space requirement by being executed on an own stack.

@param[in] buffer Memory area containing a SUIT manifest. @param[in] size Size of the manifest in @p buffer.

@return 0 on success <0 on error