encodeTo method

  1. @override
void encodeTo(
  1. List<A> value,
  2. Output output
)
override

Convert self to a slice and append it to the destination.

Implementation

@override
void encodeTo(List<A> value, Output output) {
  CompactCodec.codec.encodeTo(value.length, output);
  for (final element in value) {
    codec.encodeTo(element, output);
  }
}