maybe_mem_map
maybe_mem_map(
fid: IOBase ,
dtype = <u1,
)-> ‘np.ndarray | np.memmap’
Memory-map a file when possible, otherwise return an in-memory array.
Parameters
| Parameter | Description |
|---|---|
| fid | A buffered reader, e.g. from open(file) as fid. |