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

Method write

atomic-cli/src/logging/file_format.rs:75–78  ·  view source on GitHub ↗
(&mut self, bytes: &[u8])

Source from the content-addressed store, hash-verified

73
74 impl io::Write for Captured {
75 fn write(&mut self, bytes: &[u8]) -> io::Result<usize> {
76 self.0.lock().unwrap().extend_from_slice(bytes);
77 Ok(bytes.len())
78 }
79
80 fn flush(&mut self) -> io::Result<()> {
81 Ok(())

Callers

nothing calls this directly

Calls 3

lockMethod · 0.80
unwrapMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected