(path_ptr: *const u8)
| 2013 | |
| 2014 | #[no_mangle] |
| 2015 | pub extern "C" fn bloom_file_exists(path_ptr: *const u8) -> f64 { |
| 2016 | let path = str_from_header(path_ptr); |
| 2017 | let resolved = resolve_path(path); |
| 2018 | if std::path::Path::new(&resolved).exists() { 1.0 } else { 0.0 } |
| 2019 | } |
| 2020 | |
| 2021 | #[no_mangle] |
| 2022 | pub extern "C" fn bloom_read_file(path_ptr: *const u8) -> *const u8 { |
no test coverage detected