Skip to main content

JS_WriteObject2

Function JS_WriteObject2 

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

JS_WriteObject2: JS_WriteObject plus the shared-ArrayBuffer table.

This engine has no shared buffers, so the table is always empty: the answer is the same bytes JS_WriteObject produces, and *psab_tab_len is zero.

ยงSafety

As crate::bjson::JS_WriteObject; the two table pointers may be null or writable.