| Index: mojo/dart/packages/mojo/lib/src/codec.dart
|
| diff --git a/mojo/dart/packages/mojo/lib/src/codec.dart b/mojo/dart/packages/mojo/lib/src/codec.dart
|
| index 54618605143e0e40781741d9bf007034ffbc6e5f..9d62b541f375d11f7be377d521939484f8c06ab0 100644
|
| --- a/mojo/dart/packages/mojo/lib/src/codec.dart
|
| +++ b/mojo/dart/packages/mojo/lib/src/codec.dart
|
| @@ -351,7 +351,7 @@ class Encoder {
|
| encoder.appendUint8Array(bytes);
|
| }
|
|
|
| - void encodeArray(Function arrayAppend, int elementBytes, List<int> value,
|
| + void encodeArray(Function arrayAppend, int elementBytes, List value,
|
| int offset, int nullability, int expectedLength) {
|
| if (value == null) {
|
| encodeNullPointer(offset, isArrayNullable(nullability));
|
| @@ -403,12 +403,14 @@ class Encoder {
|
| nullability, expectedLength);
|
|
|
| void encodeFloatArray(
|
| - List<int> value, int offset, int nullability, int expectedLength) =>
|
| + List<double> value, int offset, int nullability,
|
| + int expectedLength) =>
|
| encodeArray((e, v) => e.appendFloatArray(v), 4, value, offset,
|
| nullability, expectedLength);
|
|
|
| void encodeDoubleArray(
|
| - List<int> value, int offset, int nullability, int expectedLength) =>
|
| + List<double> value, int offset, int nullability,
|
| + int expectedLength) =>
|
| encodeArray((e, v) => e.appendDoubleArray(v), 8, value, offset,
|
| nullability, expectedLength);
|
|
|
|
|