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 _ArrayBufferWrappingImplementation extends DOMWrapperBase implements Array
Buffer { | |
8 _ArrayBufferWrappingImplementation() : super() {} | |
9 | |
10 static create__ArrayBufferWrappingImplementation() native { | |
11 return new _ArrayBufferWrappingImplementation(); | |
12 } | |
13 | |
14 int get byteLength() { return _get_byteLength(this); } | |
15 static int _get_byteLength(var _this) native; | |
16 | |
17 ArrayBuffer slice(int begin, [int end = null]) { | |
18 if (end === null) { | |
19 return _slice(this, begin); | |
20 } else { | |
21 return _slice_2(this, begin, end); | |
22 } | |
23 } | |
24 static ArrayBuffer _slice(receiver, begin) native; | |
25 static ArrayBuffer _slice_2(receiver, begin, end) native; | |
26 | |
27 String get typeName() { return "ArrayBuffer"; } | |
28 } | |
OLD | NEW |