serializeString function

void serializeString(
  1. SerializableOutput output,
  2. dynamic x
)

string: https://www.ietf.org/rfc/rfc4251.txt

Implementation

void serializeString(SerializableOutput output, dynamic x) {
  output.addUint32(x.length);
  output.addBytes(x is String ? Uint8List.fromList(x.codeUnits) : x);
}