Converts various ArrayBuffer-like types to Uint8Array. Handles ArrayBuffer, ArrayBufferView (including typed arrays), and passes through existing Uint8Array.
The ArrayBuffer or ArrayBufferView to convert
A Uint8Array view of the data
Converts various ArrayBuffer-like types to Uint8Array. Handles ArrayBuffer, ArrayBufferView (including typed arrays), and passes through existing Uint8Array.