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

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

Issue 18081002: Document that IOSink.add may buffer data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/io_sink.dart
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart
index 4dab40fd6e031ad458c66156aad0b2a2ab79ce2d..351a30bc10301f0e3ff52bc1d71f0b02505abc92 100644
--- a/sdk/lib/io/io_sink.dart
+++ b/sdk/lib/io/io_sink.dart
@@ -26,7 +26,9 @@ abstract class IOSink implements StreamSink<List<int>>, StringSink {
Encoding encoding;
/**
- * Writes the bytes uninterpreted to the consumer.
+ * Writes the bytes uninterpreted to the consumer. While the call is
+ * synchronous, the data may be buffered until the underlying resource is
+ * ready. The data should not be modified after a call to [add].
*/
void add(List<int> data);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698