- Returns:
- Where in memory the section was mapped to. Zero if could not be mapped (eg; ran out of address space which is common on 32 bit architectures).
- Parameters:
-
| offset | From where in the file to map (should be zero for shared memory). Must be a multiple of FXProcess::pageSize(). |
| amount | How much to map in. (FXfval) -1 maps in the length of the file (bear in mind mapping in large files can exhaust available address space). |
| copyOnWrite | True if writes to the map should not be written to the file. Effectively disables shared memory. |
Maps the specified section of the file into memory. If there is insufficient address space free to fit it all in, fails silently and returns zero. Note that if this map overlaps any existing map, that map is removed first.