Index: sdk/lib/io/buffer_list.dart |
diff --git a/sdk/lib/io/buffer_list.dart b/sdk/lib/io/buffer_list.dart |
index 4f0a3f7b2159be328863f8c0dbfaa1c16f19e75b..a369366b1f0334f79611a19d45e253f376a499c3 100644 |
--- a/sdk/lib/io/buffer_list.dart |
+++ b/sdk/lib/io/buffer_list.dart |
@@ -25,6 +25,11 @@ class _BufferList { |
if (offset != 0) _index = offset; |
} |
+ /** Alias for [add]. */ |
+ void write(List<int> buffer, [int offset = 0]) { |
floitsch
2013/03/06 13:38:14
I needed to add this method so that the _BufferLis
Anders Johnsen
2013/03/06 14:31:00
SGTM, can we remove add then?
floitsch
2013/03/08 13:18:39
Maybe. I don't know how _BufferList is otherwise u
|
+ add(buffer, offset); |
+ } |
+ |
/** |
* Returns the first buffer from the list. This returns the whole |
* buffer and does not remove the buffer from the list. Use |