You can just do `new Uint8Array(byteArray)` to copy it.