Function js::jsapi::JS_NewMappedArrayBufferWithContents
[−]
[src]
pub unsafe extern "C" fn JS_NewMappedArrayBufferWithContents(
cx: *mut JSContext,
nbytes: usize,
contents: *mut c_void
) -> *mut JSObject
Create a new mapped array buffer 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 array buffer.