SharedMemory:C#共享内存类,用于在进程之间共享数据(数组,缓冲区和循环缓冲区)-源码

上传者: 42136477 | 上传时间: 2021-07-26 18:27:32 | 文件大小: 102KB | 文件类型: ZIP
C#
共享内存 C#共享内存类,用于在进程之间共享数据(数组,缓冲区,循环缓冲区和RPC) 关于 SharedMemory类库提供了一组C#类,这些C#类利用内存映射文件进行快速的低级进程间通信(IPC)。 最初仅用于在进程之间共享数据,但现在也具有简单的RPC实现。 该库在.NET 4.0+中使用.NET MemoryMappedFile类,并为.NET 3.5实现其自己的包装器类。 班级 SharedMemory.SharedBuffer一个抽象的基类,它包装了一个内存映射文件,公开了读/写操作,并实现了一个小的标头,以允许客户端在不事先知道大小的情况下打开共享缓冲区。 SharedMemory.BufferWithLocks扩展SharedMemory.SharedBuffer的抽象类,通过使用EventWaitHandles提供简单的读/写锁定支持。 SharedMemory.Sh

文件下载

资源详情

[{"title":"( 44 个子文件 102KB ) SharedMemory:C#共享内存类,用于在进程之间共享数据(数组,缓冲区和循环缓冲区)-源码","children":[{"title":"SharedMemory-master","children":[{"title":".gitignore <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"SharedMemory","children":[{"title":"SharedArray.cs <span style='color:#111;'> 11.80KB </span>","children":null,"spread":false},{"title":"UnsafeNativeMethods.cs <span style='color:#111;'> 7.74KB </span>","children":null,"spread":false},{"title":"FastStructure.cs <span style='color:#111;'> 20.06KB </span>","children":null,"spread":false},{"title":"SharedMemory.csproj <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"BufferWithLocks.cs <span style='color:#111;'> 14.10KB </span>","children":null,"spread":false},{"title":"Utilities","children":[{"title":"ArraySlice.cs <span style='color:#111;'> 11.72KB </span>","children":null,"spread":false},{"title":"ExpandingArray.cs <span style='color:#111;'> 12.78KB </span>","children":null,"spread":false}],"spread":true},{"title":"SharedHeader.cs <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"CircularBuffer.cs <span style='color:#111;'> 32.55KB </span>","children":null,"spread":false},{"title":"MemoryMappedFiles","children":[{"title":"MemoryMappedView.cs <span style='color:#111;'> 5.38KB </span>","children":null,"spread":false},{"title":"MemoryMappedFile.cs <span style='color:#111;'> 7.62KB </span>","children":null,"spread":false},{"title":"MemoryMappedViewAccessor.cs <span style='color:#111;'> 6.60KB </span>","children":null,"spread":false},{"title":"MemoryMappedFileAccess.cs <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"MemoryMappedFileRights.cs <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false},{"title":"SafeMemoryMappedFileHandle.cs <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"SafeMemoryMappedViewHandle.cs <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"BufferReadWrite.cs <span style='color:#111;'> 8.39KB </span>","children":null,"spread":false},{"title":"SharedBuffer.cs <span style='color:#111;'> 22.09KB </span>","children":null,"spread":false},{"title":"SharedMemory.licenseheader <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"RpcBuffer.cs <span style='color:#111;'> 38.70KB </span>","children":null,"spread":false}],"spread":false},{"title":"appveyor-develop.yml <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"LICENSE.md <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"SharedMemory.Tests","children":[{"title":"ExpandingArrayTests.cs <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"ArraySliceTests.cs <span style='color:#111;'> 5.06KB </span>","children":null,"spread":false},{"title":"BufferReadWriteTests.cs <span style='color:#111;'> 2.77KB </span>","children":null,"spread":false},{"title":"CircularBufferTests.cs <span style='color:#111;'> 33.46KB </span>","children":null,"spread":false},{"title":"SharedMemory.Tests.csproj <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"FastStructureTests.cs <span style='color:#111;'> 6.22KB </span>","children":null,"spread":false},{"title":"ArrayTests.cs <span style='color:#111;'> 13.58KB </span>","children":null,"spread":false},{"title":"RpcBufferTests.cs <span style='color:#111;'> 8.54KB </span>","children":null,"spread":false}],"spread":true},{"title":"SharedMemory.sln <span style='color:#111;'> 3.99KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 6.69KB </span>","children":null,"spread":false},{"title":"Examples","children":[{"title":"ClientTest","children":[{"title":"Program.cs <span style='color:#111;'> 6.47KB </span>","children":null,"spread":false},{"title":"ClientTest.csproj <span style='color:#111;'> 322B </span>","children":null,"spread":false}],"spread":true},{"title":"SingleProcess","children":[{"title":"Program.cs <span style='color:#111;'> 7.65KB </span>","children":null,"spread":false},{"title":"SingleProcess.csproj <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"CommandLineParser.cs <span style='color:#111;'> 55.93KB </span>","children":null,"spread":false}],"spread":true},{"title":"RpcTest","children":[{"title":"Program.cs <span style='color:#111;'> 4.04KB </span>","children":null,"spread":false},{"title":"RpcTest.csproj <span style='color:#111;'> 377B </span>","children":null,"spread":false}],"spread":true},{"title":"ServerTest","children":[{"title":"Program.cs <span style='color:#111;'> 5.28KB </span>","children":null,"spread":false},{"title":"ServerTest.csproj <span style='color:#111;'> 322B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"SharedMemory.nuspec <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false},{"title":"appveyor.yml <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明