| OLD | NEW |
| 1 | 1 |
| 2 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int>
native "*Uint8Array" { | 2 class _Uint8ArrayJs extends _ArrayBufferViewJs implements Uint8Array, List<int>
native "*Uint8Array" { |
| 3 | 3 |
| 4 factory Uint8Array(int length) => _construct_Uint8Array(length); | 4 factory Uint8Array(int length) => _construct_Uint8Array(length); |
| 5 | 5 |
| 6 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list); | 6 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list); |
| 7 | 7 |
| 8 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Array(buf
fer); | 8 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Array(buf
fer); |
| 9 | 9 |
| 10 static _construct_Uint8Array(arg) native 'return new Uint8Array(arg);'; | 10 static _construct_Uint8Array(arg) native 'return new Uint8Array(arg);'; |
| 11 | 11 |
| 12 static final int BYTES_PER_ELEMENT = 1; | 12 static final int BYTES_PER_ELEMENT = 1; |
| 13 | 13 |
| 14 int get length() native "return this.length;"; | 14 final int length; |
| 15 | 15 |
| 16 int operator[](int index) native "return this[index];"; | 16 int operator[](int index) native "return this[index];"; |
| 17 | 17 |
| 18 void operator[]=(int index, int value) native "this[index] = value"; | 18 void operator[]=(int index, int value) native "this[index] = value"; |
| 19 // -- start List<int> mixins. | 19 // -- start List<int> mixins. |
| 20 // int is the element type. | 20 // int is the element type. |
| 21 | 21 |
| 22 // From Iterable<int>: | 22 // From Iterable<int>: |
| 23 | 23 |
| 24 Iterator<int> iterator() { | 24 Iterator<int> iterator() { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 List<int> getRange(int start, int length) => | 82 List<int> getRange(int start, int length) => |
| 83 _Lists.getRange(this, start, length, <int>[]); | 83 _Lists.getRange(this, start, length, <int>[]); |
| 84 | 84 |
| 85 // -- end List<int> mixins. | 85 // -- end List<int> mixins. |
| 86 | 86 |
| 87 void setElements(Object array, [int offset = null]) native; | 87 void setElements(Object array, [int offset = null]) native; |
| 88 | 88 |
| 89 _Uint8ArrayJs subarray(int start, [int end = null]) native; | 89 _Uint8ArrayJs subarray(int start, [int end = null]) native; |
| 90 } | 90 } |
| OLD | NEW |