serializeString function

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

Implementation

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