Lines Matching refs:mmap
2 :mod:`mmap` --- Memory-mapped file support
5 .. module:: mmap
10 Unlike normal string objects, however, these are mutable. You can use mmap
18 A memory-mapped file is created by the :class:`~mmap.mmap` constructor, which is
37 Windows mmap returns a write-through mapping. The initial memory values for
49 mmap.mmap has formerly been a factory function creating mmap objects. Now
50 mmap.mmap is the class itself.
52 .. class:: mmap(fileno, length[, tagname[, access[, offset]]])
55 file handle *fileno*, and creates a mmap object. If *length* is larger
69 *offset* may be specified as a non-negative integer offset. mmap references
74 .. class:: mmap(fileno, length[, flags[, prot[, access[, offset]]]])
78 descriptor *fileno*, and returns a mmap object. If *length* is ``0``, the
80 :class:`~mmap.mmap` is called.
83 private copy-on-write mapping, so changes to the contents of the mmap
98 *offset* may be specified as a non-negative integer offset. mmap references
107 This example shows a simple way of using :class:`~mmap.mmap`::
109 import mmap
117 mm = mmap.mmap(f.fileno(), 0)
135 import mmap
138 mm = mmap.mmap(-1, 13)
155 Closes the mmap. Subsequent calls to other methods of the object will
186 *dest*. If the mmap was created with :const:`ACCESS_READ`, then calls to
211 Resizes the map and the underlying file, if any. If the mmap was created
247 were written. If the mmap was created with :const:`ACCESS_READ`, then
255 the mmap was created with :const:`ACCESS_READ`, then writing to it will