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