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

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

Return the available byte length of an ArrayBuffer.

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