Function js::jsapi::JS_GetArrayBufferByteLength [] [src]

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

Return the available byte length of an array buffer.

|obj| must have passed a JS_IsArrayBufferObject test, or somehow be known that it would pass such a test: it is an ArrayBuffer or a wrapper of an ArrayBuffer, and the unwrapping will succeed.