pub fn write<B: Blocks>(
blocks: &mut B,
value: &[u8],
scratch: &mut Scratch,
) -> Result<Chain>Expand description
Write a value as a chain and say where it went.
The chunks go down before the directory does, so a directory that is readable is a directory whose chunks are all readable. A reader that arrives after a crash either finds no directory, in which case the chunks are garbage that compaction will notice nobody points at, or finds one and can trust every address in it.