Function mozjs_sys::jsapi::JS_GetTypedArrayByteOffset
source ยท pub unsafe extern "C" fn JS_GetTypedArrayByteOffset(
obj: *mut JSObject,
) -> usize
Expand description
Return the byte offset from the start of an ArrayBuffer to the start of a typed array view.
|obj| must have passed a JS_IsTypedArrayObject/JS_Is*Array test, or somehow be known that it would pass such a test: it is a typed array or a wrapper of a typed array, and the unwrapping will succeed.