Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: utils/lib/file_system_vm.dart

Issue 14018007: Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and Ra… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/standalone/io/stream_pipe_test.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/lib/file_system_vm.dart
diff --git a/utils/lib/file_system_vm.dart b/utils/lib/file_system_vm.dart
index 7c09b7014e012f8c35487ae0c651bece05feaee6..d84d08148c9bc6332945d278f19215b91a300949 100644
--- a/utils/lib/file_system_vm.dart
+++ b/utils/lib/file_system_vm.dart
@@ -21,7 +21,7 @@ class VMFileSystem implements FileSystem {
var file = (new File(filename)).openSync();
var length = file.lengthSync();
var buffer = new List<int>(length);
- var bytes = file.readListSync(buffer, 0, length);
+ var bytes = file.readIntoSync(buffer, 0, length);
file.closeSync();
return new String.fromCharCodes(new Utf8Decoder(buffer).decodeRest());
}
« no previous file with comments | « tests/standalone/io/stream_pipe_test.dart ('k') | utils/pub/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698