(bytes: &mut Vec<u8>, path: &Path)
| 540 | } |
| 541 | |
| 542 | fn push_path(bytes: &mut Vec<u8>, path: &Path) { |
| 543 | let encoded = os_path_bytes(path.as_os_str()); |
| 544 | bytes.extend_from_slice(&(encoded.len() as u64).to_le_bytes()); |
| 545 | bytes.extend_from_slice(&encoded); |
| 546 | } |
| 547 | |
| 548 | #[cfg(unix)] |
| 549 | fn os_path_bytes(path: &std::ffi::OsStr) -> Vec<u8> { |
no test coverage detected