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 | 9 |
10 /** | 10 /** |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 static const int BYTES_PER_ELEMENT = 1; | 423 static const int BYTES_PER_ELEMENT = 1; |
424 } | 424 } |
425 | 425 |
426 | 426 |
427 /** | 427 /** |
428 * A fixed-length list of 8-bit unsigned integers. | 428 * A fixed-length list of 8-bit unsigned integers. |
429 * For long lists, this implementation can be considerably | 429 * For long lists, this implementation can be considerably |
430 * more space- and time-efficient than the default [List] implementation. | 430 * more space- and time-efficient than the default [List] implementation. |
431 * Indexed store clamps the value to range 0..0xFF. | 431 * Indexed store clamps the value to range 0..0xFF. |
432 */ | 432 */ |
433 abstract class Uint8ClampedList implements Uint8List { | 433 abstract class Uint8ClampedList implements List<int>, TypedData { |
434 /** | 434 /** |
435 * Creates a [Uint8ClampedList] of the specified length (in elements), all of | 435 * Creates a [Uint8ClampedList] of the specified length (in elements), all of |
436 * whose elements are initially zero. | 436 * whose elements are initially zero. |
437 */ | 437 */ |
438 external factory Uint8ClampedList(int length); | 438 external factory Uint8ClampedList(int length); |
439 | 439 |
440 /** | 440 /** |
441 * Creates a [Uint8ClampedList] of the same size as the [elements] | 441 * Creates a [Uint8ClampedList] of the same size as the [elements] |
442 * list and copies over the values clamping when needed. | 442 * list and copies over the values clamping when needed. |
443 */ | 443 */ |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1249 Uint32x4 withFlagW(bool w); | 1249 Uint32x4 withFlagW(bool w); |
1250 | 1250 |
1251 /// Merge [trueValue] and [falseValue] based on [this]' bit mask: | 1251 /// Merge [trueValue] and [falseValue] based on [this]' bit mask: |
1252 /// Select bit from [trueValue] when bit in [this] is on. | 1252 /// Select bit from [trueValue] when bit in [this] is on. |
1253 /// Select bit from [falseValue] when bit in [this] is off. | 1253 /// Select bit from [falseValue] when bit in [this] is off. |
1254 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue); | 1254 Float32x4 select(Float32x4 trueValue, Float32x4 falseValue); |
1255 | 1255 |
1256 /// Returns a bit-wise copy of [this] as a [Float32x4]. | 1256 /// Returns a bit-wise copy of [this] as a [Float32x4]. |
1257 Float32x4 toFloat32x4(); | 1257 Float32x4 toFloat32x4(); |
1258 } | 1258 } |
OLD | NEW |