MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / put_string

Method put_string

src/pgwire-common/src/codec.rs:60–63  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

58
59impl<B: BufMut> Pgbuf for B {
60 fn put_string(&mut self, s: &str) {
61 self.put(s.as_bytes());
62 self.put_u8(b'\0');
63 }
64
65 fn put_length_i16(&mut self, len: usize) -> Result<(), io::Error> {
66 let len = i16::try_from(len).map_err(|_| {

Callers 3

encode_innerMethod · 0.80
encodeMethod · 0.80
encode_innerMethod · 0.80

Calls 2

putMethod · 0.80
as_bytesMethod · 0.45

Tested by

no test coverage detected