Index: runtime/bin/file_patch.dart |
=================================================================== |
--- runtime/bin/file_patch.dart (revision 19764) |
+++ runtime/bin/file_patch.dart (working copy) |
@@ -35,6 +35,6 @@ |
/* patch */ static _flush(int id) native "File_Flush"; |
} |
-List<int> _makeUint8ListView(List<int> source, int from, int to) { |
- return new Uint8List.view(source.asByteArray(), from, to); |
+List<int> _makeUint8ListView(List<int> source, int offsetInBytes, int length) { |
Ivan Posva
2013/03/12 09:32:02
Don't you want to add the correct type to source?
siva
2013/03/12 10:31:46
Yes, it is an ExternalTypedData of Uint8List, so I
|
+ return new Uint8List.view(source.buffer, offsetInBytes, length); |
} |