| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _Uint16ArrayWrappingImplementation extends _ArrayBufferViewWrappingImpleme
ntation implements Uint16Array { | 7 class _Uint16ArrayWrappingImplementation extends _ArrayBufferViewWrappingImpleme
ntation implements Uint16Array { |
| 8 _Uint16ArrayWrappingImplementation() : super() {} | 8 _Uint16ArrayWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__Uint16ArrayWrappingImplementation() native { | 10 static create__Uint16ArrayWrappingImplementation() native { |
| 11 return new _Uint16ArrayWrappingImplementation(); | 11 return new _Uint16ArrayWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 int get length() { return _get__Uint16Array_length(this); } | 14 int get length() { return _get_length(this); } |
| 15 static int _get__Uint16Array_length(var _this) native; | 15 static int _get_length(var _this) native; |
| 16 | 16 |
| 17 Uint16Array subarray(int start, [int end = null]) { | 17 Uint16Array subarray(int start, [int end = null]) { |
| 18 if (end === null) { | 18 if (end === null) { |
| 19 return _subarray(this, start); | 19 return _subarray(this, start); |
| 20 } else { | 20 } else { |
| 21 return _subarray_2(this, start, end); | 21 return _subarray_2(this, start, end); |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 static Uint16Array _subarray(receiver, start) native; | 24 static Uint16Array _subarray(receiver, start) native; |
| 25 static Uint16Array _subarray_2(receiver, start, end) native; | 25 static Uint16Array _subarray_2(receiver, start, end) native; |
| 26 | 26 |
| 27 String get typeName() { return "Uint16Array"; } | 27 String get typeName() { return "Uint16Array"; } |
| 28 } | 28 } |
| OLD | NEW |