Skip to main content

create_temp_mmap

Function create_temp_mmap 

Source
pub fn create_temp_mmap<A, S, D>(
    data: &ArrayBase<S, D>,
    mode: AccessMode,
    offset: usize,
) -> Result<MemoryMappedArray<A>, CoreError>
where A: Clone + Copy + 'static + Send + Sync, S: Data<Elem = A>, D: Dimension,
Expand description

Create a new temporary memory-mapped array

§Arguments

  • data - The array data to write to the temporary file
  • mode - Access mode
  • offset - Offset in bytes from the start of the file

§Returns

A new memory-mapped array backed by a temporary file