OLD | NEW |
1 | 1 |
2 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int
> native "*Uint32Array" { | 2 class _Uint32ArrayJs extends _ArrayBufferViewJs implements Uint32Array, List<int
> native "*Uint32Array" { |
3 | 3 |
4 factory Uint32Array(int length) => _construct_Uint32Array(length); | 4 factory Uint32Array(int length) => _construct_Uint32Array(length); |
5 | 5 |
6 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list); | 6 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list); |
7 | 7 |
8 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint32Array(b
uffer); | 8 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint32Array(b
uffer); |
9 | 9 |
10 static _construct_Uint32Array(arg) native 'return new Uint32Array(arg);'; | 10 static _construct_Uint32Array(arg) native 'return new Uint32Array(arg);'; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 77 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
78 } | 78 } |
79 void insertRange(int start, int length, [int initialValue]) { | 79 void insertRange(int start, int length, [int initialValue]) { |
80 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 80 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
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 if (offset == null) return this.set(array); |
| 89 return this.set(array, offset);'''; |
88 | 90 |
89 _Uint32ArrayJs subarray(int start, [int end = null]) native; | 91 _Uint32ArrayJs subarray(int start, [int end = null]) native; |
90 } | 92 } |
OLD | NEW |