Memory mapped files?

Discussions Related to Game Hacking and Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Memory mapped files?

Postby maybnxtseasn » Fri Dec 17, 2010 10:13 am

msdn is quite confusing and im wondering if anyone could explain simply how memory mapped files differ from other approaches of reading bytes of a file on disk? -thx
maybnxtseasn
I Have A Few Questions
 
Posts: 7
Joined: Thu Feb 18, 2010 7:41 am

Re: Memory mapped files?

Postby L. Spiro » Sun Dec 19, 2010 7:58 am

When using memory-mapped files, when you access the RAM that has been mapped, the access operation (read or write) is redirected to the hard drive, specifically to the file that has been mapped.
Reading from a mapped virtual address in RAM means you are actually reading from your hard drive. Modifying that RAM will modify the file on your hard drive.

Because of this unique association between RAM and your hard drive, there are many restrictions on how memory-mapping can work. For example, page alignments etc.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan


Return to General Related Discussions

Who is online

Users browsing this forum: No registered users and 0 guests

cron