lightnion
lightnion copied to clipboard
Migrate away from Uint8Array to ArrayBuffer
Having a native transferable type used for all data manipulations will enable us to integrate better with workers through window.postMessage
and to use the SubtleCrypto
API as a BufferSource
.
We use Uint8Array
and may prefer use ArrayBuffer
– see Uint8Array.prototype.buffer
.