ByteData uint8ArrayToDataView(Uint8List arr) { return ByteData.view(arr.buffer, arr.offsetInBytes, arr.lengthInBytes); }