pub unsafe extern "C" fn JS_GetArrayBufferViewFixedData(
    obj: *mut JSObject,
    buffer: *mut u8,
    bufSize: usize
) -> *mut u8
Expand description

Return a “fixed” pointer (one that will not move during a GC) to the ArrayBufferView’s data. Note that this will not keep the object alive; the holding object should be rooted or traced. If the view is storing the data inline, this will copy the data to the provided buffer, returning nullptr if bufSize is inadequate.

Avoid using this unless necessary. JS_GetArrayBufferViewData is simpler and more efficient because it requires the caller to ensure that a GC will not occur and thus does not need to handle movable data.