...文件映象(即一个exe或 dll文件)用作地址空间区域对应的物理存储器时,我们称这个文件映象为内存映射文件(memory mapped file)。当载入一个exe或dll时,系统会自动预订空间区域并把文件映象映射到该区域。
基于8个网页-相关网页
This will create the memory mapped file but to start using it we will need a map view.
这样,我们就创建了一个内存映射文件。
With the stream in place, we can now create the memory mapped file. Let's see an example.
创建合适的流之后,现在就可以创建内存映射文件了。
Now, there is a small drawback with this approach and is related to the size of the memory mapped file.
但是这种方法有个小小的缺点,这和内存映射文件的大小有关。如果事先不知道大小的话,为了以防万一,你可能会构造一个超级大的文件。
应用推荐