fn with_scratch<Out>(f: impl FnOnce(&mut Vec<u64>) -> Out) -> Out
Run f with this thread’s read scratch, cleared of any previous use.
f