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

Unified Diff: sdk/lib/io/http_parser.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/http_parser.dart
diff --git a/sdk/lib/io/http_parser.dart b/sdk/lib/io/http_parser.dart
index cecd6320d7a1b3be248468670bcb5ec15d6507ff..c008f349987e5d0e4026e2e9c4ce9cac4d7b8079 100644
--- a/sdk/lib/io/http_parser.dart
+++ b/sdk/lib/io/http_parser.dart
@@ -795,7 +795,7 @@ class _HttpParser
List<int> readUnparsedData() {
if (_buffer == null) return null;
if (_index == _buffer.length) return null;
- var result = _buffer.getRange(_index, _buffer.length - _index);
+ var result = _buffer.sublist(_index);
_releaseBuffer();
return result;
}

Powered by Google App Engine
This is Rietveld 408576698