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

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

Issue 1947683006: Bring in the latest version of the SDK's WebSocket impl. (Closed) Base URL: git@github.com:dart-lang/web_socket_channel.git@master
Patch Set: Merge again Created 4 years, 7 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 | 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/copy/bytes_builder.dart b/lib/src/copy/bytes_builder.dart
index 39d44fe6544fc89c6dee6e550067b967cb4828c7..573eed585ab512eebeb26366d910f0a9062ca463 100644
--- a/lib/src/copy/bytes_builder.dart
+++ b/lib/src/copy/bytes_builder.dart
@@ -9,7 +9,8 @@
// Because it's copied directly, there are no modifications from the original.
//
// This is up-to-date as of sdk revision
-// 86227840d75d974feb238f8b3c59c038b99c05cf.
+// e41fb4cafd6052157dbc1490d437045240f4773f.
+
import 'dart:math';
import 'dart:typed_data';
@@ -122,7 +123,7 @@ class _CopyingBytesBuilder implements BytesBuilder {
_length = required;
}
- void addByte(int byte) => add([byte]);
+ void addByte(int byte) { add([byte]); }
List<int> takeBytes() {
if (_buffer == null) return new Uint8List(0);
@@ -162,7 +163,7 @@ class _CopyingBytesBuilder implements BytesBuilder {
class _BytesBuilder implements BytesBuilder {
int _length = 0;
- final List _chunks = [];
+ final _chunks = <List<int>>[];
void add(List<int> bytes) {
if (bytes is! Uint8List) {
@@ -172,7 +173,7 @@ class _BytesBuilder implements BytesBuilder {
_length += bytes.length;
}
- void addByte(int byte) => add([byte]);
+ void addByte(int byte) { add([byte]); }
List<int> takeBytes() {
if (_chunks.length == 0) return new Uint8List(0);
« no previous file with comments | « no previous file | lib/src/copy/io_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698