OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |