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 Uint8Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { | 7 interface Uint8Array extends ArrayBufferView, List<int> default _TypedArrayFacto
ryProvider { |
8 | 8 |
9 Uint8Array(int length); | 9 Uint8Array(int length); |
10 | 10 |
11 Uint8Array.fromList(List<int> list); | 11 Uint8Array.fromList(List<int> list); |
12 | 12 |
13 Uint8Array.fromBuffer(ArrayBuffer buffer); | 13 Uint8Array.fromBuffer(ArrayBuffer buffer); |
14 | 14 |
15 static final int BYTES_PER_ELEMENT = 1; | 15 static final int BYTES_PER_ELEMENT = 1; |
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 Uint8Array subarray(int start, [int end]); | 21 Uint8Array subarray(int start, [int end]); |
22 } | 22 } |
OLD | NEW |