Function mozjs_sys::jsapi::JS_WriteStructuredClone
source ยท pub unsafe extern "C" fn JS_WriteStructuredClone(
cx: *mut JSContext,
v: HandleValue,
data: *mut JSStructuredCloneData,
scope: StructuredCloneScope,
cloneDataPolicy: *const CloneDataPolicy,
optionalCallbacks: *const JSStructuredCloneCallbacks,
closure: *mut c_void,
transferable: HandleValue,
) -> bool
Expand description
Implements StructuredSerialize, StructuredSerializeForStorage, and StructuredSerializeWithTransfer.
Note: If the scope is DifferentProcess then the cloneDataPolicy must deny shared-memory objects, or an error will be signaled if a shared memory object is seen.