Skip to main content

JS_WriteObject

Function JS_WriteObject 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_WriteObject( ctx: *mut JsContext, psize: *mut usize, obj: JsValue, flags: i32, ) -> *mut u8
Expand description

JS_WriteObject: serialise obj into a block the caller frees with js_free.

ยงSafety

psize must be null or writable, and obj a live JSValue.