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

Side by Side Diff: dart/runtime/lib/byte_array.dart

Issue 12296011: Version 0.3.7.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « dart/runtime/lib/array.dart ('k') | dart/runtime/lib/growable_array.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 patch class Int8List { 5 patch class Int8List {
6 /* patch */ factory Int8List(int length) { 6 /* patch */ factory Int8List(int length) {
7 return new _Int8Array(length); 7 return new _Int8Array(length);
8 } 8 }
9 9
10 /* patch */ factory Int8List.transferable(int length) { 10 /* patch */ factory Int8List.transferable(int length) {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 var len = this.length; 226 var len = this.length;
227 for (var i = 0; i < len; i++) { 227 for (var i = 0; i < len; i++) {
228 f(this[i]); 228 f(this[i]);
229 } 229 }
230 } 230 }
231 231
232 Iterable map(f(int element)) { 232 Iterable map(f(int element)) {
233 return IterableMixinWorkaround.mapList(this, f); 233 return IterableMixinWorkaround.mapList(this, f);
234 } 234 }
235 235
236 List mappedBy(f(int element)) {
237 return IterableMixinWorkaround.mappedByList(this, f);
238 }
239
240 String join([String separator]) { 236 String join([String separator]) {
241 return IterableMixinWorkaround.join(this, separator); 237 return IterableMixinWorkaround.join(this, separator);
242 } 238 }
243 239
244 dynamic reduce(dynamic initialValue, 240 dynamic reduce(dynamic initialValue,
245 dynamic combine(dynamic initialValue, element)) { 241 dynamic combine(dynamic initialValue, element)) {
246 return IterableMixinWorkaround.reduce(this, initialValue, combine); 242 return IterableMixinWorkaround.reduce(this, initialValue, combine);
247 } 243 }
248 244
249 Collection where(bool f(int element)) { 245 Collection where(bool f(int element)) {
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after
2677 ByteArray asByteArray([int start = 0, int length]) { 2673 ByteArray asByteArray([int start = 0, int length]) {
2678 if (length == null) { 2674 if (length == null) {
2679 length = this.lengthInBytes(); 2675 length = this.lengthInBytes();
2680 } 2676 }
2681 _rangeCheck(this.length, start, length); 2677 _rangeCheck(this.length, start, length);
2682 return _array.subByteArray(_offset + start, length); 2678 return _array.subByteArray(_offset + start, length);
2683 } 2679 }
2684 2680
2685 static const int _BYTES_PER_ELEMENT = 8; 2681 static const int _BYTES_PER_ELEMENT = 8;
2686 } 2682 }
OLDNEW
« no previous file with comments | « dart/runtime/lib/array.dart ('k') | dart/runtime/lib/growable_array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698