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

Get a copy of the underlying array buffer and return it unlike when using detach_array_buffer_buffer_q the TypedArray is still intact after using this the operation is just more expensive because the Vec is cloned

Safety

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