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

Method read_n

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

Source from the content-addressed store, hash-verified

65 }
66
67 pub fn read_n<const N: usize>(&mut self) -> Result<[u8; N]> {
68 let mut data = [0_u8; N];
69 self.read_exact(&mut data)?;
70 Ok(data)
71 }
72
73 pub fn read_u8(&mut self) -> Result<u8> {
74 let data = self.read_n()?;

Callers 10

read_u8Method · 0.80
read_u16Method · 0.80
read_u32Method · 0.80
read_u64Method · 0.80
read_i8Method · 0.80
read_i16Method · 0.80
read_i32Method · 0.80
read_i64Method · 0.80
read_f32Method · 0.80
read_f64Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected