MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / write

Method write

crates/fs-utils/src/compression.rs:199–203  ·  view source on GitHub ↗
(&mut self, buf: &[u8])

Source from the content-addressed store, hash-verified

197
198 impl<W: io::Write> io::Write for Writer<W> {
199 fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
200 let n = self.inner.write(buf)?;
201 self.bytes_written += n as u64;
202 Ok(n)
203 }
204
205 fn flush(&mut self) -> io::Result<()> {
206 self.inner.flush()

Callers 3

o_exclFunction · 0.45
atomic_writeFunction · 0.45
lock_innerMethod · 0.45

Calls 1

OkFunction · 0.50

Tested by

no test coverage detected