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

Unified Diff: runtime/bin/list_stream.dart

Issue 9021008: Fix list output stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 | tests/standalone/src/ListInputStreamTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/list_stream.dart
diff --git a/runtime/bin/list_stream.dart b/runtime/bin/list_stream.dart
index 79e8a7dd3f84ab85597771c2d17032e3a6371f07..da5826ec8e956bbec2039d07d62e81b6fb8fc7ad 100644
--- a/runtime/bin/list_stream.dart
+++ b/runtime/bin/list_stream.dart
@@ -71,12 +71,14 @@ class ListOutputStream implements OutputStream {
} else {
_bufferList.add(buffer);
}
+ return true;
}
bool writeFrom(List<int> buffer, [int offset = 0, int len]) {
if (_streamMarkedClosed) throw new StreamException.streamClosed();
_bufferList.add(
buffer.getRange(offset, (len == null) ? buffer.length - offset : len));
+ return true;
}
void close() {
« no previous file with comments | « no previous file | tests/standalone/src/ListInputStreamTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698