OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _Uint8ClampedArrayWrappingImplementation extends _Uint8ArrayWrappingImplem
entation implements Uint8ClampedArray { | |
8 _Uint8ClampedArrayWrappingImplementation() : super() {} | |
9 | |
10 static create__Uint8ClampedArrayWrappingImplementation() native { | |
11 return new _Uint8ClampedArrayWrappingImplementation(); | |
12 } | |
13 | |
14 int get length() { return _get_length_Uint8ClampedArray(this); } | |
15 static int _get_length_Uint8ClampedArray(var _this) native; | |
16 | |
17 void setElements(Object array, [int offset = null]) { | |
18 if (offset === null) { | |
19 _setElements(this, array); | |
20 return; | |
21 } else { | |
22 _setElements_2(this, array, offset); | |
23 return; | |
24 } | |
25 } | |
26 static void _setElements(receiver, array) native; | |
27 static void _setElements_2(receiver, array, offset) native; | |
28 | |
29 Uint8ClampedArray subarray(int start, [int end = null]) { | |
30 if (end === null) { | |
31 return _subarray_Uint8ClampedArray(this, start); | |
32 } else { | |
33 return _subarray_Uint8ClampedArray_2(this, start, end); | |
34 } | |
35 } | |
36 static Uint8ClampedArray _subarray_Uint8ClampedArray(receiver, start) native; | |
37 static Uint8ClampedArray _subarray_Uint8ClampedArray_2(receiver, start, end) n
ative; | |
38 | |
39 String get typeName() { return "Uint8ClampedArray"; } | |
40 } | |
OLD | NEW |