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