pgwire::pg_message

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.