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

Method int16

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

Source from the content-addressed store, hash-verified

28 }
29
30 pub fn int16(&mut self) -> Result<i16> {
31 let bytes = self.take_slice(2)?;
32 Ok(i16::from_be_bytes([bytes[0], bytes[1]]))
33 }
34
35 pub fn byte(&mut self) -> Result<u8> {
36 let bytes = self.take_slice(1)?;

Callers 5

parse_copy_messageMethod · 0.80
parse_row_descriptionMethod · 0.80
parse_fieldMethod · 0.80
parse_data_rowMethod · 0.80

Calls 1

take_sliceMethod · 0.80

Tested by

no test coverage detected