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

Method string

src/protocol/buffer_reader.rs:45–49  ·  view source on GitHub ↗
(&mut self, length: usize)

Source from the content-addressed store, hash-verified

43 }
44
45 pub fn string(&mut self, length: usize) -> Result<String> {
46 let bytes = self.take_slice(length)?;
47 let text = std::str::from_utf8(bytes)?;
48 Ok(text.to_owned())
49 }
50
51 pub fn cstring(&mut self) -> Result<String> {
52 let start = self.offset;

Callers 4

parse_ready_for_queryMethod · 0.80
parse_data_rowMethod · 0.80
parse_authenticationMethod · 0.80
collect_fieldsFunction · 0.80

Calls 1

take_sliceMethod · 0.80

Tested by

no test coverage detected