pub unsafe extern "C" fn JS_ReadStructuredClone(
cx: *mut JSContext,
data: *const JSStructuredCloneData,
version: u32,
scope: StructuredCloneScope,
vp: MutableHandle<Value>,
cloneDataPolicy: *const CloneDataPolicy,
optionalCallbacks: *const JSStructuredCloneCallbacks,
closure: *mut c_void,
) -> bool
Expand description
Implements StructuredDeserialize and StructuredDeserializeWithTransfer.
Note: If data
contains transferable objects, it can be read only once.