MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / write_sized

Method write_sized

document/container/src/lib.rs:221–225  ·  view source on GitHub ↗

Write `size` bytes whose contents are produced by `fill`. The default implementation allocates and forwards to [`Container::write`]; backends that can mmap a writable region may override to fill in place.

(&self, path: &str, size: usize, fill: &mut dyn FnMut(&mut [u8]) -> Result<()>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Implementers 2

folder.rsdocument/container/src/backends/folder
memory.rsdocument/container/src/backends/memory

Calls 2

fillFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected