MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / read_i8

Method read_i8

libraries/rawkit/src/tiff/file.rs:105–111  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

103 }
104
105 pub fn read_i8(&mut self) -> Result<i8> {
106 let data = self.read_n()?;
107 match self.endian {
108 Endian::Little => Ok(i8::from_le_bytes(data)),
109 Endian::Big => Ok(i8::from_be_bytes(data)),
110 }
111 }
112
113 pub fn read_i16(&mut self) -> Result<i16> {
114 let data = self.read_n()?;

Callers 1

read_primitiveMethod · 0.80

Calls 1

read_nMethod · 0.80

Tested by

no test coverage detected