pub fn write_string(bytes: &[u8], out: &mut Vec<u8>)Expand description
Writes a string object. Byte content that is printable ASCII (plus tab,
newline and carriage return) uses the literal form with \-escapes;
anything else uses the hex form. The choice is a pure function of the
bytes, keeping output deterministic.