Function script::dom::bindings::import::module::jsapi::JS_GetTypedArrayLength

source ยท
pub unsafe extern "C" fn JS_GetTypedArrayLength(
    obj: *mut JSObject,
) -> usize
Expand description

Return the number of elements in a typed array.

|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.