summaryrefslogtreecommitdiff
path: root/doc/src/snippets/code/doc_src_debug.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-12-15 13:29:30 +0000
committerShane Kearns <shane.kearns@accenture.com>2011-12-15 13:49:06 +0000
commit3a4728e169ef59896f8f1c7f1c9a3abc814c83cf (patch)
tree76c11e90ae855cb482edc12ecd564b3c4a195917 /doc/src/snippets/code/doc_src_debug.cpp
parentba3f5ec3884aafb6c9761ef8719b82d4345245fa (diff)
downloadqt4-tools-3a4728e169ef59896f8f1c7f1c9a3abc814c83cf.tar.gz
Symbian - Fix QFile::map with non page aligned offsets
Although it is not documented, RFileMap native API requires the offset into the file to be a multiple of the page size. Round down the offset requested by the user to the page size. Add back the difference before returning the base address to the user. e.g. if the offset passed to QFile::map was 5000: The offset passed to RFileMap will be 4096 The address returned to the user will be the RFileMap::Base() + 904 The modified address is used to key the hash of file mappings, so that QFile::unmap() can be passed the modified address without needing changes. Reviewed-by: mread Task-number: ou1cimx#953054
Diffstat (limited to 'doc/src/snippets/code/doc_src_debug.cpp')
0 files changed, 0 insertions, 0 deletions