pub fn read_indexed_code_slice_from_source_bounded(
store: &AtlasStore,
file: &Path,
start_line: usize,
end_line: Option<usize>,
source: &str,
output_budget: CodeSliceBudget,
) -> ServiceResult<CodeSliceDraft>Expand description
Read a byte-bounded exact line slice from caller-verified source bytes.
ยงErrors
Returns an error when the file is not indexed, line numbers are invalid, or the verbatim slice cannot fit the requested output budget.