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

Unified Diff: sdk/lib/io/file_impl.dart

Issue 12315129: Make File.readSync return only the bytes read (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
Index: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index 59be0f19b14ad8173724dc716bfcad65dd75022b..6a76712068e47780cb6eb08368f59b88774b7251 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -1056,3 +1056,7 @@ class _RandomAccessFile extends _FileBase implements RandomAccessFile {
SendPort _fileService;
}
+
+List<int> _makeUint8ListView(List<int> source, int from, int to) {
+ return new Uint8List.view(source.asByteArray(), from, to);
+}

Powered by Google App Engine
This is Rietveld 408576698