pub unsafe extern "C" fn NewMappedArrayBufferWithContents(
cx: *mut JSContext,
nbytes: usize,
contents: *mut c_void,
) -> *mut JSObject
Expand description
Create a new mapped ArrayBuffer with the given memory mapped contents. It must be legal to free the contents pointer by unmapping it. On success, ownership is transferred to the new mapped ArrayBuffer.