| Index: lib/dom/templates/html/frog/factoryprovider_DataView.darttemplate
|
| diff --git a/lib/dom/templates/html/frog/factoryprovider_DataView.darttemplate b/lib/dom/templates/html/frog/factoryprovider_DataView.darttemplate
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c3d35a79a0cef039df2ff2577971057cb613cf70
|
| --- /dev/null
|
| +++ b/lib/dom/templates/html/frog/factoryprovider_DataView.darttemplate
|
| @@ -0,0 +1,13 @@
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// 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.
|
| +
|
| +class $FACTORYPROVIDER {
|
| + factory DataView(ArrayBuffer buffer,
|
| + [int byteOffset = null, int byteLength = null])
|
| + native '''
|
| + if (byteOffset == null) return new DataView(buffer);
|
| + if (byteLength == null) return new DataView(buffer, byteOffset);
|
| + return new DataView(buffer, byteOffset, byteLength);
|
| + ''';
|
| +}
|
|
|