Function js::jsapi::JS_GetTypedArrayLength [] [src]

pub unsafe extern "C" fn JS_GetTypedArrayLength(obj: *mut JSObject) -> u32

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.