OLD | NEW |
1 | 1 |
2 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L
ist<int> native "*Uint8ClampedArray" { | 2 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L
ist<int> native "*Uint8ClampedArray" { |
3 | 3 |
4 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length)
; | 4 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length)
; |
5 | 5 |
6 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA
rray(list); | 6 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA
rray(list); |
7 | 7 |
8 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl
ampedArray(buffer); | 8 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl
ampedArray(buffer); |
9 | 9 |
10 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray(
arg);'; | 10 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray(
arg);'; |
11 | 11 |
12 // Use implementation from Uint8Array. | 12 // Use implementation from Uint8Array. |
13 // final int length; | 13 // final int length; |
14 | 14 |
| 15 void setElements(Object array, [int offset = null]) native ''' |
| 16 if (offset == null) return this.set(array); |
| 17 return this.set(array, offset);'''; |
| 18 |
15 _Uint8ClampedArrayJs subarray(int start, [int end = null]) native; | 19 _Uint8ClampedArrayJs subarray(int start, [int end = null]) native; |
16 } | 20 } |
OLD | NEW |