MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / add_cstring

Method add_cstring

src/protocol/tests.rs:36–41  ·  view source on GitHub ↗
(&mut self, value: &str)

Source from the content-addressed store, hash-verified

34 }
35
36 pub fn add_cstring(&mut self, value: &str) -> &mut Self {
37 let mut bytes = value.as_bytes().to_vec();
38 bytes.push(0);
39 self.buffers.push(bytes);
40 self
41 }
42
43 pub fn add_string(&mut self, value: &str) -> &mut Self {
44 self.buffers.push(value.as_bytes().to_vec());

Callers 15

startupMethod · 0.45
passwordMethod · 0.45
queryMethod · 0.45
parseMethod · 0.45
bindMethod · 0.45
describeMethod · 0.45
closeMethod · 0.45
copy_failMethod · 0.45
authentication_saslFunction · 0.45
parameter_statusFunction · 0.45
command_completeFunction · 0.45

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected