encodeTo method

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

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

Implementation

@override
void encodeTo(String value, Output output) {
  final utf8str = Uint8List.fromList(utf8.encode(value));
  CompactCodec.codec.encodeTo(utf8str.length, output);
  output.write(utf8str);
}