pgwire::pg_message

Function write_cstr

source
fn write_cstr(buf: &mut BytesMut, s: &[u8]) -> Result<()>
Expand description

Safe write of s into buf as cstring (String in the protocol).