As the name implies, a memory-mapped file maps a file-like construct to an address in memory.
顾名思义,一个内存映射文件将一个类似文件的结构映射到内存的地址中。
After reading this article, you should understand NIO, from basic get and put operations to reading a memory-mapped file.
在阅读完本文之后,您应该了解了NIO从基本的get和put操作到读取内存映射文件方面的知识。
If two applications open the same memory-mapped file, changes made by one application will be immediately visible to the other application.
如果两个应用程序打开了同一个内存映射文件,那么某个应用程序做出的改变会立即反映给另外一个应用程序。
Creates or opens a memory-mapped file that has the specified capacity and access type in system memory.
在系统内存中创建或打开一个内存映射文件。
With the stream in place, we can now create the memory mapped file. Let's see an example.
创建合适的流之后,现在就可以创建内存映射文件了。
With the stream in place, we can now create the memory mapped file. Let's see an example.
创建合适的流之后,现在就可以创建内存映射文件了。
应用推荐