pub fn read_file_segment( path: &Path, offset: u64, length: u64, max_file_size: u64, ) -> Result<Vec<u8>>
Read a specific byte segment through bounded, race-detecting safe I/O.