Skip to main content

webui_streaming_session_write_shell

Function webui_streaming_session_write_shell 

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

Render everything before the first 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, so hosts writing to a socket do not need strlen.

ยง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.