pub fn load_file(path: PathBuf) -> Result<Vec<u8>, XdbError>Expand description
Load an xdb database file into memory.
Pre-allocates the buffer with the exact file size to avoid reallocation during reading.
ยงExample
let data = xdb_parse::load_file("./assets/ip2region_v4.xdb".into())?;