MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / write

Method write

atomic-agent/src/record/scope.rs:67–70  ·  view source on GitHub ↗
(&mut self, buf: &[u8])

Source from the content-addressed store, hash-verified

65
66impl<D: Digest> std::io::Write for DigestWriter<'_, D> {
67 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
68 self.0.update(buf);
69 Ok(buf.len())
70 }
71
72 fn flush(&mut self) -> std::io::Result<()> {
73 Ok(())

Calls 2

updateMethod · 0.45
lenMethod · 0.45