pub unsafe extern "C" fn GetObjectAsArrayBuffer(
obj: *mut JSObject,
length: *mut usize,
data: *mut *mut u8,
) -> *mut JSObject
Expand description
Attempt to unwrap |obj| as an ArrayBuffer.
If |obj| is an ArrayBuffer, return it unwrapped and set |*length| and |*data| to weakly refer to the ArrayBuffer’s contents.
If |obj| isn’t an ArrayBuffer, return nullptr and do not modify |*length| or |*data|.