with-mapped-array-reader ( path c-type quot -- )
Memory-mapped files

Prev:with-mapped-array ( path c-type quot -- )
Next:Working with memory-mapped data


Vocabulary
io.mmap

Inputs
patha pathname string
c-typea c-type
quota quotation


Outputs
None

Word description
Memory-maps a file for reading as a mapped-array of the given c-type. The mapped file is disposed of when the quotation returns, or if an error is thrown.

Errors
Throws an error if a memory mapping could not be established.

Definition