Skip to main content

webui_streaming_session_update

Function webui_streaming_session_update 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn webui_streaming_session_update( session_ptr: *mut webui_streaming_session_t, boundary: u32, state_json: *const c_char, out_len: *mut usize, ) -> *mut c_char
Expand description

Push a projected state patch to a committed updatable boundary.

Returns a NUL-terminated UTF-8 chunk that must be freed with webui_free, or NULL on error. When out_len is non-null it receives the byte length excluding the terminator.

ยงSafety

  • session_ptr must be a live session handle.
  • state_json must be non-null, null-terminated UTF-8.
  • out_len must be writable, or NULL.