Simpler way to convert UInt8Array to ArrayBuffer