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 // Unlike the other SDK libraries, this file is not a patch that is applied to | |
6 // dart:typed_data. Instead, it completely replaces the implementation from the | |
7 // SDK. | |
8 library dart.typed_data; | 5 library dart.typed_data; |
9 | 6 |
10 import "dart:_internal"; | 7 import "dart:_internal"; |
11 import "dart:collection" show ListBase; | 8 import "dart:collection" show ListBase; |
12 import 'dart:math' show Random; | 9 import 'dart:math' show Random; |
13 | 10 |
14 /** | 11 /** |
15 * A typed view of a sequence of bytes. | 12 * A typed view of a sequence of bytes. |
16 */ | 13 */ |
17 abstract class TypedData { | 14 abstract class TypedData { |
(...skipping 4231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4249 } | 4246 } |
4250 } | 4247 } |
4251 | 4248 |
4252 | 4249 |
4253 int _defaultIfNull(object, value) { | 4250 int _defaultIfNull(object, value) { |
4254 if (object == null) { | 4251 if (object == null) { |
4255 return value; | 4252 return value; |
4256 } | 4253 } |
4257 return object; | 4254 return object; |
4258 } | 4255 } |
OLD | NEW |