Function read_null_terminated

Source
fn read_null_terminated(buf: &mut Bytes) -> Result<Bytes>
Expand description

Continue read until reached a \0. Used in reading string from Bytes.