(buffer: &[u8], bytes: &[u8])
| 676 | } |
| 677 | |
| 678 | pub fn find_bytes(buffer: &[u8], bytes: &[u8]) -> Option<usize> { |
| 679 | buffer |
| 680 | .windows(bytes.len()) |
| 681 | .position(|window| window == bytes) |
| 682 | } |
| 683 | |
| 684 | pub fn collect_files_from_cache<F: Fn(&DirEntry) -> bool>( |
| 685 | cache_path: &PathBuf, |
no test coverage detected