Skip to main content

write_fetch_request_iter

Function write_fetch_request_iter 

Source
pub fn write_fetch_request_iter(
    wants: impl Iterator<Item = ObjectId> + Clone,
    options: FetchOptions,
    output: &mut impl Write,
) -> Result<()>
Expand description

Encode a cloneable iterator of IDs, avoiding temporary ID arrays in adapters. Duplicate probes reread the iterator; it must yield the same IDs on every clone. All wants use one format. Validation precedes any output.