MCPcopy Create free account
hub / github.com/git/git / write

Method write

src/hash.rs:199–202  ·  view source on GitHub ↗
(&mut self, data: &[u8])

Source from the content-addressed store, hash-verified

197
198impl Write for CryptoHasher {
199 fn write(&mut self, data: &[u8]) -> io::Result<usize> {
200 self.update(data);
201 Ok(data.len())
202 }
203
204 fn flush(&mut self) -> io::Result<()> {
205 Ok(())

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
lenMethod · 0.80

Tested by

no test coverage detected