Skip to main content

elly_run

Function elly_run 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn elly_run( ptr: *const u8, len: usize, ) -> *mut u8
Expand description

Run len UTF-8 bytes at ptr through the pipeline; return length-prefixed JSON.

ยงSafety

ptr/len must describe a valid, initialized block of linear memory (e.g. one from elly_alloc that JS has filled). The returned block is owned by the caller and must be released with elly_free.