read_source_bytes_controlled

Function read_source_bytes_controlled 

Source
fn read_source_bytes_controlled(
    path: &Path,
    max_bytes: u64,
    stage: IndexWorkStage,
    control: &IndexWorkControl,
) -> Result<Vec<u8>, SourceReadFailure>
Expand description

Read at most one admitted source-byte budget while checking cooperative stop state.