| Index: client/html/src/Float32ArrayWrappingImplementation.dart
|
| diff --git a/client/html/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart b/client/html/src/Float32ArrayWrappingImplementation.dart
|
| similarity index 54%
|
| rename from client/html/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart
|
| rename to client/html/src/Float32ArrayWrappingImplementation.dart
|
| index d5d5c0dc9436661ae2de3fbec2b0f39a08a6c0db..f6b37fc7969d6609490974fb37640a33aa8df8bd 100644
|
| --- a/client/html/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart
|
| +++ b/client/html/src/Float32ArrayWrappingImplementation.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 Float32ArrayWrappingImplementation extends ArrayBufferViewWrappingImplementation implements Float32Array {
|
| Float32ArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
|
|
|
| + factory Float32ArrayWrappingImplementation(int length) =>
|
| + LevelDom.wrapFloat32Array(new dom.Float32Array(length));
|
| +
|
| + factory Float32ArrayWrappingImplementation.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.wrapFloat32Array(new dom.Float32Array.fromList(list));
|
| +
|
| + factory Float32ArrayWrappingImplementation.fromBuffer(ArrayBuffer buffer) =>
|
| + LevelDom.wrapFloat32Array(new dom.Float32Array.fromBuffer(LevelDom.unwrap(buffer)));
|
| +
|
| int get length() { return _ptr.length; }
|
|
|
| Float32Array subarray(int start, [int end]) {
|
|
|