void* FX::QMemMap::mapIn ( FXfval  offset = 0,
FXfval  amount = (FXfval)-1,
bool  copyOnWrite = false 
)

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.


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:41 2009 for TnFOX by doxygen v1.4.7