I/O routines

ElemCo.MIOModule

EC-specific IO routines

Use to store arrays in a file, and to load them back. Use memory-maps to store and load large arrays.

Exported functions

ElemCo.MIO.mioclosemmapMethod
mioclosemmap(io::IO, array::AbstractArray)

Close memory-map file and flush to disk.

ElemCo.MIO.mioloadMethod
mioload(fname::String; array_of_arrays = false)

Load arrays from a file fname.

Return an array of arrays. If there is only one array - return array itself (unless array_of_arrays is set to true).

ElemCo.MIO.miommapMethod
miommap(fname::String)

Memory-map an existing file for reading. Return a pointer to the file and the mmaped array.

ElemCo.MIO.mionewmmapMethod
mionewmmap(fname::String, Type, dims::Tuple{Vararg{Int}})

Create a new memory-map file for writing (overwrites existing file). Return a pointer to the file and the mmaped array.

ElemCo.MIO.miosaveMethod
miosave(fname::String,arrs::AbstractArray{T}...) where T

Save arrays arrs in a file fname.

Internal functions