Function mozjs::jsapi::JS_NewArrayBufferWithContents
[−]
[src]
pub unsafe extern "C" fn JS_NewArrayBufferWithContents(
cx: *mut JSContext,
nbytes: usize,
contents: *mut c_void
) -> *mut JSObject
Create a new array buffer with the given contents. It must be legal to pass these contents to free(). On success, the ownership is transferred to the new array buffer.