pub unsafe fn detach_array_buffer_buffer(
    ctx: *mut JSContext,
    array_buffer: &JSValueRef
) -> Result<Vec<u8>, JsError>
Expand description

detach the array buffer and return it, after this the TypedArray is no longer usable in JS (or at least all items will return undefined)

Safety

please ensure that the relevant QuickjsRealmAdapter is not dropped while using this function or a result of this function