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

Method read_i32

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

Source from the content-addressed store, hash-verified

119 }
120
121 pub fn read_i32(&mut self) -> Result<i32> {
122 let data = self.read_n()?;
123 match self.endian {
124 Endian::Little => Ok(i32::from_le_bytes(data)),
125 Endian::Big => Ok(i32::from_be_bytes(data)),
126 }
127 }
128
129 pub fn read_i64(&mut self) -> Result<i64> {
130 let data = self.read_n()?;

Callers 1

read_primitiveMethod · 0.80

Calls 1

read_nMethod · 0.80

Tested by

no test coverage detected