encodeTo method
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);
}