Skip to main content

open_mmap

Function open_mmap 

Source
pub fn open_mmap<A, D>(
    file_path: &Path,
    mode: AccessMode,
    offset: usize,
) -> Result<MemoryMappedArray<A>, CoreError>
where A: Clone + Copy + Send + Sync + 'static, D: Dimension,
Expand description

Create a memory-mapped array from an existing file

§Arguments

  • file_path - Path to the file to memory-map
  • mode - Access mode (read-only, read-write, etc.)
  • offset - Offset in bytes from the start of the file

§Returns

A new memory-mapped array