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

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

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 9 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/buffer_list.dart
diff --git a/sdk/lib/io/buffer_list.dart b/sdk/lib/io/buffer_list.dart
index 97e5e804012b288b45783db5de1c37c57df2405b..0b3716c7a033c8de2a8a3a0f8f4dffb707d7d1a3 100644
--- a/sdk/lib/io/buffer_list.dart
+++ b/sdk/lib/io/buffer_list.dart
@@ -79,7 +79,7 @@ class _BufferList {
} else {
int firstRemaining = _buffers.first.length - _index;
if (firstRemaining >= count) {
- result = _buffers.first.getRange(_index, count);
+ result = _buffers.first.sublist(_index, _index + count);
_index += count;
_length -= count;
if (_index == _buffers.first.length) {

Powered by Google App Engine
This is Rietveld 408576698