OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface Int16Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | 7 interface Int16Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { |
8 | 8 |
9 Int16Array(int length); | 9 Int16Array(int length); |
10 | 10 |
11 Int16Array.fromList(List<int> list); | 11 Int16Array.fromList(List<int> list); |
12 | 12 |
13 Int16Array.fromBuffer(ArrayBuffer buffer); | 13 Int16Array.fromBuffer(ArrayBuffer buffer); |
14 | 14 |
15 static final int BYTES_PER_ELEMENT = 2; | 15 static final int BYTES_PER_ELEMENT = 2; |
16 | 16 |
17 int get length(); | 17 final int length; |
18 | 18 |
19 void setElements(Object array, [int offset]); | 19 void setElements(Object array, [int offset]); |
20 | 20 |
21 Int16Array subarray(int start, [int end]); | 21 Int16Array subarray(int start, [int end]); |
22 } | 22 } |
OLD | NEW |