C#访问内存映射文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/216083/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
C# accessing memory map file
提问by leora
Looking for code samples to access a memory map file in C#
寻找代码示例以访问 C# 中的内存映射文件
采纳答案by leora
Looks like C# 4.0 will have MemoryMappedFile support in the library
看起来 C# 4.0 将在库中提供 MemoryMappedFile 支持
回答by Franci Penov
You can take a look at this CodeProject articlewhich shows a simple array over MMF implementation using Winterdom's FileMap library- basically a wrapper around the Win32 APIs for memory mapped files.
您可以查看这篇 CodeProject 文章,该文章显示了使用Winterdom 的 FileMap 库的MMF 实现上的简单数组- 基本上是针对内存映射文件的 Win32 API 的包装器。
Caveat emptor: 1) I have not used FileMap, so I can't vouch for it; 2) FileMap is under LGPL, if the licensing terms are of any concer of you.
注意事项:1)我没有使用过 FileMap,所以我不能保证它;2) FileMap 在 LGPL 下,如果许可条款与您有关。
You can also search on http://pinvoke.netfor the P/Invoke definitions of the corresponding Win32 APIs and roll your own implementation.
您还可以在http://pinvoke.net 上搜索相应 Win32 API 的 P/Invoke 定义并推出您自己的实现。
回答by Mubashar
http://1code.codeplex.com/wikipage?title=IRPC
http://1code.codeplex.com/wikipage?title=IRPC
Search with
搜索
CSFileMappingClient
CSFileMappingServer