pub unsafe extern "C" fn JS_NewDataView(
cx: *mut JSContext,
buffer: Handle<*mut JSObject>,
byteOffset: usize,
byteLength: usize,
) -> *mut JSObject
Expand description
Create a new DataView using the given buffer for storage. The given buffer must be an ArrayBuffer or SharedArrayBuffer (or a cross-compartment wrapper of either type), and the offset and length must fit within the bounds of the buffer. Currently, nullptr will be returned and an exception will be thrown if these conditions do not hold, but do not depend on that behavior.