Skip to main content

write_string

Function write_string 

Source
pub fn write_string(buffer: &mut BytesMut, s: &str)
Expand description

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.