ggpk 1.2.1

Library for GGPK container format used by the game Path of Exile
Documentation
1
2
3
4
5
6
7
8
9
use memmap::Mmap;
use memmap::MmapOptions;
use std::fs::File;
use std::io::Error;

pub fn to_mmap_unsafe(path: &str) -> Result<Mmap, Error> {
    let file = File::open(path)?;
    unsafe { MmapOptions::new().map(&file) }
}