Vocabularyio .
mmap Inputs path a pathname string
OutputsNone
Word descriptionMemory-maps a file for reading and writing, wrapping it in a specialized array with the given element type. The mapped file is disposed of when the quotation returns, or if an error is thrown.
ExamplesUSING: alien.c-types io.mmap prettyprint specialized-arrays ;
SPECIALIZED-ARRAY: uint
resource:LICENSE.txt" uint [
[ . ] each
] with-mapped-array
ErrorsThrows an error if a memory mapping could not be established.
Definition