toArrayBuffer
Converts a Uint8Array to an ArrayBuffer. If the underlying buffer is a SharedArrayBuffer,
it will be copied to a non-shared buffer, for safety.
Parameters
| Parameter | Type |
|---|---|
bytes | | ReadonlyUint8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> |
offset? | number |
length? | number |
Returns
Remarks
Source: https://stackoverflow.com/questions/37228285/uint8array-to-arraybuffer