encodeTo method
Convert self to a slice and append it to the destination.
Implementation
@override
void encodeTo(List<int> value, Output output) {
if (value.length != length) {
throw Exception(
'U16ArrayCodec: invalid length, expect $length found ${value.length}');
}
for (final val in value) {
U16Codec.codec.encodeTo(val, output);
}
}