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