Chromium Code Reviews| Index: runtime/lib/typeddata.dart |
| =================================================================== |
| --- runtime/lib/typeddata.dart (revision 20330) |
| +++ runtime/lib/typeddata.dart (working copy) |
| @@ -228,12 +228,12 @@ |
| patch class ByteData { |
| /* patch */ factory ByteData(int length) { |
| var list = new _Uint8Array(length); |
| - return new _ByteDataView(list.buffer); |
| + return new _ByteDataView(list.buffer, 0, length); |
| } |
| /* patch */ factory ByteData.transferable(int length) { |
|
vsm
2013/03/21 18:35:27
I don't see the transferable constructor declared
siva
2013/03/22 01:42:11
I think Anton at one point wanted a way to create
|
| var list = new _Uint8Array.transferable(length); |
| - return new _ByteDataView(list.buffer); |
| + return new _ByteDataView(list.buffer, 0, length); |
| } |
| /* patch */ factory ByteData.view(ByteBuffer buffer, |