| Index: client/html/src/Int16ArrayWrappingImplementation.dart
|
| diff --git a/client/html/generated/src/wrapping/_Int16ArrayWrappingImplementation.dart b/client/html/src/Int16ArrayWrappingImplementation.dart
|
| similarity index 54%
|
| rename from client/html/generated/src/wrapping/_Int16ArrayWrappingImplementation.dart
|
| rename to client/html/src/Int16ArrayWrappingImplementation.dart
|
| index ffa93025e66495d149b79910ade9e158bf4be51e..f1a94df36a176fb6f9c3e46f3cbe5ae6410e88b1 100644
|
| --- a/client/html/generated/src/wrapping/_Int16ArrayWrappingImplementation.dart
|
| +++ b/client/html/src/Int16ArrayWrappingImplementation.dart
|
| @@ -2,11 +2,21 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -// WARNING: Do not edit - generated code.
|
| -
|
| class Int16ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementation implements Int16Array {
|
| Int16ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
|
|
|
| + factory Int16ArrayWrappingImplementation(int length) =>
|
| + LevelDom.wrapInt16Array(new dom.Int16Array(length));
|
| +
|
| + factory Int16ArrayWrappingImplementation.from(List<num> list) =>
|
| + // TODO(nweiz): when there's a cross-platform name for the native
|
| + // implementation of List, check if [list] is native and if not convert it
|
| + // to a native list before sending it to the JS constructor.
|
| + LevelDom.wrapInt16Array(new dom.Int16Array.fromList(list));
|
| +
|
| + factory Int16ArrayWrappingImplementation.fromBuffer(ArrayBuffer buffer) =>
|
| + LevelDom.wrapInt16Array(new dom.Int16Array.fromBuffer(LevelDom.unwrap(buffer)));
|
| +
|
| int get length() { return _ptr.length; }
|
|
|
| Int16Array subarray(int start, [int end]) {
|
|
|