Skip to main content

webui_render_bytes

Function webui_render_bytes 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn webui_render_bytes( result_ptr: *const webui_render_t, out_len: *mut usize, ) -> *const u8
Expand description

Borrow a rendered document and write its length in bytes to out_len.

The returned UTF-8 bytes are borrowed from result_ptr, are not NUL-terminated, and remain valid only until webui_render_free. They may be read for exactly out_len bytes. Returns NULL on error.

ยงSafety

  • result_ptr must be a live result handle with no concurrent destroy.
  • out_len must be non-null and writable.