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

Unified Diff: sdk/lib/io/secure_socket.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/secure_socket.dart
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart
index 727f0198f4c522f71019f6eb409eb2d26733738e..41fdf59a81d0a1c8e77f8432e5a925d4c7978167 100644
--- a/sdk/lib/io/secure_socket.dart
+++ b/sdk/lib/io/secure_socket.dart
@@ -433,7 +433,7 @@ class _RawSecureSocket extends Stream<RawSocketEvent>
}
}
List<int> result = (toRead == 0) ? null :
- buffer.data.getRange(buffer.start, toRead);
+ buffer.data.sublist(buffer.start, buffer.start + toRead);
buffer.advanceStart(toRead);
// Set up a read event if the filter still has data.

Powered by Google App Engine
This is Rietveld 408576698