encodeTo method

  1. @override
void encodeTo(
  1. TypeDefComposite value,
  2. Output output
)
override

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

Implementation

@override
void encodeTo(TypeDefComposite value, Output output) {
  SequenceCodec(Field.codec).encodeTo(value.fields, output);
  print('After seq: ${(output as ByteOutput).toBytes()}');
}