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

Method int32

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

Source from the content-addressed store, hash-verified

38 }
39
40 pub fn int32(&mut self) -> Result<i32> {
41 let bytes = self.take_slice(4)?;
42 Ok(i32::from_be_bytes([bytes[0], bytes[1], bytes[2], bytes[3]]))
43 }
44
45 pub fn string(&mut self, length: usize) -> Result<String> {
46 let bytes = self.take_slice(length)?;

Callers 6

parse_notificationMethod · 0.80
parse_fieldMethod · 0.80
parse_data_rowMethod · 0.80
parse_authenticationMethod · 0.80

Calls 1

take_sliceMethod · 0.80

Tested by

no test coverage detected