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

Unified Diff: pkg/http_parser/lib/src/bytes_builder.dart

Issue 250073002: Re-apply "Add a non-dart:io WebSocket implementation to http_parser." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 | « pkg/http_parser/lib/http_parser.dart ('k') | pkg/http_parser/lib/src/web_socket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_parser/lib/src/bytes_builder.dart
diff --git a/sdk/lib/io/bytes_builder.dart b/pkg/http_parser/lib/src/bytes_builder.dart
similarity index 93%
copy from sdk/lib/io/bytes_builder.dart
copy to pkg/http_parser/lib/src/bytes_builder.dart
index 610c50a74638e5c8d1ab3844f8522c16814ae9a3..446e1751baa4aeaa8978235878eee3b979f932d8 100644
--- a/sdk/lib/io/bytes_builder.dart
+++ b/pkg/http_parser/lib/src/bytes_builder.dart
@@ -2,7 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-part of dart.io;
+// This is a copy of "dart:io"'s BytesBuilder implementation, from
+// sdk/lib/io/bytes_builder.dart. It's copied here to make it available to
+// non-"dart:io" applications (issue 18348).
+//
+// Because it's copied directly, there are no modifications from the original.
+library http_parser.bytes_builder;
+
+import 'dart:math';
+import 'dart:typed_data';
/**
* Builds a list of bytes, allowing bytes and lists of bytes to be added at the
« no previous file with comments | « pkg/http_parser/lib/http_parser.dart ('k') | pkg/http_parser/lib/src/web_socket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698