在windows平台上是否有一个内存映射api,就像linux上的mmap()一样?

有没有api做内存映射,就像
mmap()

在linux上?

File mapping

File mapping is the association of a file’s contents with a portion of the virtual address space of a process. The system creates a file mapping object (also kNown as a section object) to maintain this association. A file view is the portion of virtual address space that a process uses to access the file’s contents. File mapping allows the process to use both random input and output (I/O) and sequential I/O. It also allows the process to work efficiently with a large data file,such as a database,without having to map the whole file into memory. Multiple processes can also use memory-mapped files to share data.

Processes read from and write to the file view using pointers,just as they would with dynamically allocated memory. The use of file mapping improves efficiency because the file resides on disk,but the file view resides in memory. Processes can also manipulate the file view with the VirtualProtect function.

相关文章

Windows2012R2备用域控搭建 前置操作 域控主域控的主dns:自...
主域控角色迁移和夺取(转载) 转载自:http://yupeizhi.blo...
Windows2012R2 NTP时间同步 Windows2012R2里没有了internet时...
Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...