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

Unified Diff: lib/src/copy/bytes_builder.dart

Issue 1225403008: Bring in latest dart:io WebSocket code. (Closed) Base URL: git@github.com:dart-lang/http_parser@master
Patch Set: pubspec + changelog Created 5 years, 5 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 | « lib/src/bytes_builder.dart ('k') | lib/src/copy/io_sink.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/copy/bytes_builder.dart
diff --git a/lib/src/bytes_builder.dart b/lib/src/copy/bytes_builder.dart
similarity index 97%
rename from lib/src/bytes_builder.dart
rename to lib/src/copy/bytes_builder.dart
index 68af4170bdcea2db4873a75727892edc44cf79cb..4ab83b369519fcbc1735c3fe5295a8bae4c0a07d 100644
--- a/lib/src/bytes_builder.dart
+++ b/lib/src/copy/bytes_builder.dart
@@ -7,7 +7,10 @@
// non-"dart:io" applications (issue 18348).
//
// Because it's copied directly, there are no modifications from the original.
-library http_parser.bytes_builder;
+//
+// This is up-to-date as of sdk revision
+// 86227840d75d974feb238f8b3c59c038b99c05cf.
+library http_parser.copy.bytes_builder;
import 'dart:math';
import 'dart:typed_data';
@@ -86,6 +89,7 @@ abstract class BytesBuilder {
void clear();
}
+
class _CopyingBytesBuilder implements BytesBuilder {
// Start with 1024 bytes.
static const int _INIT_SIZE = 1024;
@@ -157,6 +161,7 @@ class _CopyingBytesBuilder implements BytesBuilder {
}
}
+
class _BytesBuilder implements BytesBuilder {
int _length = 0;
final List _chunks = [];
« no previous file with comments | « lib/src/bytes_builder.dart ('k') | lib/src/copy/io_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698