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

Side by Side Diff: sdk/lib/typed_data/typed_data.dart

Issue 25931003: Make List.shuffle take an optional Random object to use. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comment. Created 7 years, 2 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/corelib/shuffle_test.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 library dart.typed_data; 5 library dart.typed_data;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:_collection-dev'; 8 import 'dart:_collection-dev';
9 import 'dart:math' show Random;
9 10
10 /** 11 /**
11 * A sequence of bytes underlying a typed data object. 12 * A sequence of bytes underlying a typed data object.
12 * Used to process large quantities of binary or numerical data 13 * Used to process large quantities of binary or numerical data
13 * more efficiently using a typed view. 14 * more efficiently using a typed view.
14 */ 15 */
15 abstract class ByteBuffer { 16 abstract class ByteBuffer {
16 /** 17 /**
17 * Returns the length of this byte buffer, in bytes. 18 * Returns the length of this byte buffer, in bytes.
18 */ 19 */
(...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 /// Returns a new [Uint32x4] copied from [this] with a new z value. 1246 /// Returns a new [Uint32x4] copied from [this] with a new z value.
1246 Uint32x4 withFlagZ(bool z); 1247 Uint32x4 withFlagZ(bool z);
1247 /// Returns a new [Uint32x4] copied from [this] with a new w value. 1248 /// Returns a new [Uint32x4] copied from [this] with a new w value.
1248 Uint32x4 withFlagW(bool w); 1249 Uint32x4 withFlagW(bool w);
1249 1250
1250 /// Merge [trueValue] and [falseValue] based on [this]' bit mask: 1251 /// Merge [trueValue] and [falseValue] based on [this]' bit mask:
1251 /// Select bit from [trueValue] when bit in [this] is on. 1252 /// Select bit from [trueValue] when bit in [this] is on.
1252 /// Select bit from [falseValue] when bit in [this] is off. 1253 /// Select bit from [falseValue] when bit in [this] is off.
1253 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue); 1254 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue);
1254 } 1255 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/corelib/shuffle_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698