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

Method bytes

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

Source from the content-addressed store, hash-verified

66 }
67
68 pub fn bytes(&mut self, length: usize) -> Result<Vec<u8>> {
69 let bytes = self.take_slice(length)?;
70 Ok(bytes.to_vec())
71 }
72}

Callers 2

parse_authenticationMethod · 0.80

Calls 1

take_sliceMethod · 0.80

Tested by

no test coverage detected