pub fn new_entire<P: AsRef<Path>>(path: P) -> io::Result<Self> {
        let file = fs::File::open(path)?;
        let len = file.metadata()?.len();

        let inner =
            MmapedFileInner::new_entire_readonly(file.into_raw_fd(), false, len as _, 0, true)?;

        Ok(Self { inner })
    }
/// mmap entire file into memory.
mmap entire file into memory.
mmap entire file into memory .
pub fn new_entire<P: AsRef<Path>>(path: P) -> io::Result<Self> {
        let file = fs::File::open(path)?;
        let len = file.metadata()?.len();
        let inner =
            MmapedFileInner::new_entire_readonly(file.into_raw_fd(), false, len as _, 0, true)?;
        Ok(Self { inner })
    }
pub fn new_entire < P : AsRef < Path > > ( path : P ) -> io :: Result < Self > { let file = fs :: File :: open ( path ) ? ; let len = file . metadata ( ) ? . len ( ) ; let inner = MmapedFileInner :: new_entire_readonly ( file . into_raw_fd ( ) , false , len as _ , 0 , true ) ? ; Ok ( Self { inner } ) }
mmap entire file into memory.
mmap entire file into memory .
path
P
path
P