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.typeddata; | 5 library dart.typeddata; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:_collection-dev'; |
8 | 9 |
9 /** | 10 /** |
10 * A sequence of bytes underlying a typed data object. | 11 * A sequence of bytes underlying a typed data object. |
11 * Used to process large quantities of binary or numerical data | 12 * Used to process large quantities of binary or numerical data |
12 * more efficiently using a typed view. | 13 * more efficiently using a typed view. |
13 */ | 14 */ |
14 abstract class ByteBuffer { | 15 abstract class ByteBuffer { |
15 /** | 16 /** |
16 * Returns the length of this byte buffer, in bytes. | 17 * Returns the length of this byte buffer, in bytes. |
17 */ | 18 */ |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 Uint32x4 withFlagW(bool w); | 860 Uint32x4 withFlagW(bool w); |
860 | 861 |
861 /// Merge [trueValue] and [falseValue] based on [this]' bit mask: | 862 /// Merge [trueValue] and [falseValue] based on [this]' bit mask: |
862 /// Select bit from [trueValue] when bit in [this] is on. | 863 /// Select bit from [trueValue] when bit in [this] is on. |
863 /// Select bit from [falseValue] when bit in [this] is off. | 864 /// Select bit from [falseValue] when bit in [this] is off. |
864 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue); | 865 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue); |
865 | 866 |
866 /// Returns a bit-wise copy of [this] as a [Float32x4]. | 867 /// Returns a bit-wise copy of [this] as a [Float32x4]. |
867 Float32x4 toFloat32x4(); | 868 Float32x4 toFloat32x4(); |
868 } | 869 } |
OLD | NEW |