pub unsafe extern "C" fn JS_WriteStructuredClone(
cx: *mut JSContext,
v: Handle<Value>,
data: *mut JSStructuredCloneData,
scope: StructuredCloneScope,
cloneDataPolicy: *const CloneDataPolicy,
optionalCallbacks: *const JSStructuredCloneCallbacks,
closure: *mut c_void,
transferable: Handle<Value>,
) -> 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.