Handmade Hero » Forums » Code » Reading/writing files with MapViewOfFile function
matra774
matra
7 posts
#215 Reading/writing files with MapViewOfFile function
4 years, 6 months ago

Is there any reason not to just map the whole file in memory with win32 CreateFileMapping/MapViewOfFile function instead of reading it with ReadFile.


Matra
cmuratori
Casey Muratori
818 posts / 1 project

Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.

#216 Reading/writing files with MapViewOfFile function
4 years, 6 months ago

This was answered in the video. It introduces a complex operating system topic for no reason - these are for debug loading only.

- Casey
matra774
matra
7 posts
#223 Reading/writing files with MapViewOfFile function
4 years, 6 months ago

Thanks. I'll watch it again ;-)

BTW: Great videos. I'm looking forward for more.

Matra