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

Unified Diff: runtime/bin/string_stream.dart

Issue 10911120: Cleanup and fixes to some dart:io files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « runtime/bin/http_parser.dart ('k') | runtime/bin/websocket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/string_stream.dart
diff --git a/runtime/bin/string_stream.dart b/runtime/bin/string_stream.dart
index 26710f9740bb10df7936041a3fe9f2290128428e..12f09df2a4ed43139fde6825e0be54220832b18a 100644
--- a/runtime/bin/string_stream.dart
+++ b/runtime/bin/string_stream.dart
@@ -12,9 +12,12 @@ interface _StringDecoder {
// Returns whether any decoded data is available.
bool isEmpty();
+ // Returns the number of available decoded characters.
+ int available();
+
// Get the number of line breaks present in the current decoded
// data.
- int lineBreaks();
+ int get lineBreaks;
// Get the string data decoded since the last call to [decode] or
// [decodeLine]. Returns null if no decoded data is available.
@@ -73,9 +76,7 @@ class _StringDecoderBase implements _StringDecoder {
return buffer.length;
}
- bool isEmpty() {
- return _result.isEmpty();
- }
+ bool isEmpty() => _result.isEmpty();
int get lineBreaks => _lineBreaks;
« no previous file with comments | « runtime/bin/http_parser.dart ('k') | runtime/bin/websocket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698