| Index: runtime/lib/byte_array.dart
|
| diff --git a/runtime/lib/byte_array.dart b/runtime/lib/byte_array.dart
|
| index df48640e32f15118b38d1e9b24ad0f4c5805f81a..a08cfbaf799bb9709edfdff19b5a258576e45314 100644
|
| --- a/runtime/lib/byte_array.dart
|
| +++ b/runtime/lib/byte_array.dart
|
| @@ -54,7 +54,7 @@ interface ByteArrayViewable {
|
|
|
| int lengthInBytes();
|
|
|
| - ByteArray asByteArray([int offsetInBytes, int lengthInBytes]);
|
| + ByteArray asByteArray([int start, int length]);
|
| }
|
|
|
|
|
| @@ -284,11 +284,11 @@ abstract class _ByteArrayBase {
|
| "Cannot remove from a non-extendable array");
|
| }
|
|
|
| - ByteArray asByteArray([int offsetInBytes = 0, int lengthInBytes]) {
|
| - if (lengthInBytes === null) {
|
| - lengthInBytes = this.lengthInBytes();
|
| + ByteArray asByteArray([int start = 0, int length]) {
|
| + if (length === null) {
|
| + length = this.lengthInBytes();
|
| }
|
| - return new _ByteArrayView(this, offsetInBytes, lengthInBytes);
|
| + return new _ByteArrayView(this, start, length);
|
| }
|
|
|
| int _length() native "ByteArray_getLength";
|
|
|