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

Method read_u8

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

Source from the content-addressed store, hash-verified

71 }
72
73 pub fn read_u8(&mut self) -> Result<u8> {
74 let data = self.read_n()?;
75 match self.endian {
76 Endian::Little => Ok(u8::from_le_bytes(data)),
77 Endian::Big => Ok(u8::from_be_bytes(data)),
78 }
79 }
80
81 pub fn read_u16(&mut self) -> Result<u16> {
82 let data = self.read_n()?;

Callers 1

read_primitiveMethod · 0.80

Calls 1

read_nMethod · 0.80

Tested by

no test coverage detected