Skip to main content

write_loose_with_scratch

Function write_loose_with_scratch 

Source
pub fn write_loose_with_scratch(
    repository: &impl Repository,
    index: usize,
    scratch: &mut [u8],
    output: &mut impl Write,
) -> Result<()>
Expand description

Stream a loose object by index. Borrowed bodies use write_loose directly; other providers need nonempty scratch for nonempty bodies. Output is identical for every scratch size. Discard partial output on error.