Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_u8
Method · 0.80
read_u16
Method · 0.80
read_u32
Method · 0.80
read_u64
Method · 0.80
read_i8
Method · 0.80
read_i16
Method · 0.80
read_i32
Method · 0.80
read_i64
Method · 0.80
read_f32
Method · 0.80
read_f64
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected