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

Method read_u16

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

Source from the content-addressed store, hash-verified

79 }
80
81 pub fn read_u16(&mut self) -> Result<u16> {
82 let data = self.read_n()?;
83 match self.endian {
84 Endian::Little => Ok(u16::from_le_bytes(data)),
85 Endian::Big => Ok(u16::from_be_bytes(data)),
86 }
87 }
88
89 pub fn read_u32(&mut self) -> Result<u32> {
90 let data = self.read_n()?;

Callers 4

new_from_offsetMethod · 0.80
read_primitiveMethod · 0.80
readMethod · 0.80
decodeFunction · 0.80

Calls 1

read_nMethod · 0.80

Tested by

no test coverage detected