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

Unified Diff: runtime/bin/buffer_list.dart

Issue 9235067: Use ByteArray's native for Socket and File. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 | « no previous file | runtime/bin/file_impl.dart » ('j') | runtime/lib/byte_array.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/buffer_list.dart
===================================================================
--- runtime/bin/buffer_list.dart (revision 3811)
+++ runtime/bin/buffer_list.dart (working copy)
@@ -76,7 +76,7 @@
_length -= count;
return result;
} else {
- result = new List<int>(count);
+ result = new ByteArray(count);
int remaining = count;
while (remaining > 0) {
int bytesInFirst = _buffers.first().length - _index;
« no previous file with comments | « no previous file | runtime/bin/file_impl.dart » ('j') | runtime/lib/byte_array.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698