OLD | NEW |
| (Empty) |
1 | |
2 class _Uint8ClampedArrayJs extends _Uint8ArrayJs implements Uint8ClampedArray, L
ist<int> native "*Uint8ClampedArray" { | |
3 | |
4 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length)
; | |
5 | |
6 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA
rray(list); | |
7 | |
8 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl
ampedArray(buffer); | |
9 | |
10 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray(
arg);'; | |
11 | |
12 // Use implementation from Uint8Array. | |
13 // final int length; | |
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 | |
19 _Uint8ClampedArrayJs subarray(int start, [int end = null]) native; | |
20 } | |
OLD | NEW |