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

Method byte

src/protocol/buffer_reader.rs:35–38  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

33 }
34
35 pub fn byte(&mut self) -> Result<u8> {
36 let bytes = self.take_slice(1)?;
37 Ok(bytes[0])
38 }
39
40 pub fn int32(&mut self) -> Result<i32> {
41 let bytes = self.take_slice(4)?;

Callers 1

parse_copy_messageMethod · 0.80

Calls 1

take_sliceMethod · 0.80

Tested by

no test coverage detected