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 /// The Dart TypedData library. | 5 /// The Dart TypedData library. |
6 library dart.typeddata; | 6 library dart.typed_data; |
7 | 7 |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:_collection-dev'; | 9 import 'dart:_collection-dev'; |
10 import 'dart:html'; | 10 import 'dart:html'; |
11 import 'dart:html_common'; | 11 import 'dart:html_common'; |
12 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin
gBehavior, JSName, Null, Returns; | 12 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin
gBehavior, JSName, Null, Returns; |
13 import 'dart:_foreign_helper' show JS; | 13 import 'dart:_foreign_helper' show JS; |
14 | 14 |
15 /** | 15 /** |
16 * Describes endianness to be used when accessing a sequence of bytes. | 16 * Describes endianness to be used when accessing a sequence of bytes. |
(...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2400 static Uint32List _U32_3(arg1, arg2, arg3) => | 2400 static Uint32List _U32_3(arg1, arg2, arg3) => |
2401 JS('Uint32List', 'new Uint32Array(#, #, #)', arg1, arg2, arg3); | 2401 JS('Uint32List', 'new Uint32Array(#, #, #)', arg1, arg2, arg3); |
2402 static Uint8ClampedList _U8C_3(arg1, arg2, arg3) => | 2402 static Uint8ClampedList _U8C_3(arg1, arg2, arg3) => |
2403 JS('Uint8ClampedList', 'new Uint8ClampedArray(#, #, #)', arg1, arg2, arg3)
; | 2403 JS('Uint8ClampedList', 'new Uint8ClampedArray(#, #, #)', arg1, arg2, arg3)
; |
2404 | 2404 |
2405 | 2405 |
2406 // Ensures that [list] is a JavaScript Array or a typed array. If necessary, | 2406 // Ensures that [list] is a JavaScript Array or a typed array. If necessary, |
2407 // copies the list. | 2407 // copies the list. |
2408 static ensureNative(List list) => list; // TODO: make sure. | 2408 static ensureNative(List list) => list; // TODO: make sure. |
2409 } | 2409 } |
OLD | NEW |