MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / write

Method write

src/pglite/pg_dump.rs:651–657  ·  view source on GitHub ↗
(&mut self, buf: &[u8])

Source from the content-addressed store, hash-verified

649
650impl Write for CaptureFile {
651 fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
652 self.buffer
653 .lock()
654 .expect("capture lock poisoned")
655 .extend_from_slice(buf);
656 Ok(buf.len())
657 }
658
659 fn flush(&mut self) -> std::io::Result<()> {
660 Ok(())

Callers 12

openMethod · 0.80
write_atFunction · 0.80
open_root_lock_fileFunction · 0.80
acquireMethod · 0.80
poll_writeMethod · 0.80
poll_writeMethod · 0.80
add_pgdata_preopenFunction · 0.80
with_bytesMethod · 0.80

Calls 1

lenMethod · 0.80