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

Side by Side Diff: sdk/lib/convert/byte_conversion.dart

Issue 2880543002: Revert "Change some platform libraries to use `part of URI`." (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/convert/base64.dart ('k') | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of "dart:convert"; 5 part of dart.convert;
6 6
7 /** 7 /**
8 * The [ByteConversionSink] provides an interface for converters to 8 * The [ByteConversionSink] provides an interface for converters to
9 * efficiently transmit byte data. 9 * efficiently transmit byte data.
10 * 10 *
11 * Instead of limiting the interface to one non-chunked list of bytes it 11 * Instead of limiting the interface to one non-chunked list of bytes it
12 * accepts its input in chunks (themselves being lists of bytes). 12 * accepts its input in chunks (themselves being lists of bytes).
13 * 13 *
14 * This abstract class will likely get more methods over time. Implementers are 14 * This abstract class will likely get more methods over time. Implementers are
15 * urged to extend or mix in [ByteConversionSinkBase] to ensure that their 15 * urged to extend or mix in [ByteConversionSinkBase] to ensure that their
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 v |= v >> 8; 110 v |= v >> 8;
111 v |= v >> 16; 111 v |= v >> 16;
112 v++; 112 v++;
113 return v; 113 return v;
114 } 114 }
115 115
116 void close() { 116 void close() {
117 _callback(_buffer.sublist(0, _bufferIndex)); 117 _callback(_buffer.sublist(0, _bufferIndex));
118 } 118 }
119 } 119 }
OLDNEW
« no previous file with comments | « sdk/lib/convert/base64.dart ('k') | sdk/lib/convert/chunked_conversion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698