OLD | NEW |
1 | 1 |
2 class Uint32Array extends ArrayBufferView implements List<int> native "*Uint32Ar
ray" { | 2 class Uint32Array extends ArrayBufferView implements List<int> native "*Uint32Ar
ray" { |
3 | 3 |
4 factory Uint32Array(int length) => _construct(length); | 4 factory Uint32Array(int length) => _construct(length); |
5 | 5 |
6 factory Uint32Array.fromList(List<int> list) => _construct(list); | 6 factory Uint32Array.fromList(List<int> list) => _construct(list); |
7 | 7 |
8 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); | 8 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer); |
9 | 9 |
10 static _construct(arg) native 'return new Uint32Array(arg);'; | 10 static _construct(arg) native 'return new Uint32Array(arg);'; |
11 | 11 |
12 static final int BYTES_PER_ELEMENT = 4; | 12 static final int BYTES_PER_ELEMENT = 4; |
13 | 13 |
14 int length; | 14 int get length() native "return this.length;"; |
15 | 15 |
16 int operator[](int index) native; | 16 int operator[](int index) native; |
17 | 17 |
18 void operator[]=(int index, int value) native; | 18 void operator[]=(int index, int value) native; |
19 | 19 |
20 Uint32Array subarray(int start, [int end = null]) native; | 20 Uint32Array subarray(int start, [int end = null]) native; |
21 } | 21 } |
OLD | NEW |