Skip to main content

read_string

Function read_string 

Source
pub fn read_string(buffer: &mut &[u8]) -> Result<String>
Expand description

Read a length-prefixed string from a byte slice

This is the synchronous version used for parsing in-memory buffers. For async I/O, use WireFormat::read_string instead.