pub fn write_string(buffer: &mut BytesMut, s: &str)
Write a length-prefixed string to a byte buffer
This is the synchronous version used for constructing in-memory buffers. For async I/O, use WireFormat::write_string instead.
WireFormat::write_string