justinstenning / SharedMemory

C# shared memory classes for sharing data between processes (Array, Buffer and Circular Buffer)
https://www.nuget.org/packages/SharedMemory
Other
566 stars 118 forks source link

Support file-backed memory mapped file #20

Closed kasajian closed 7 years ago

kasajian commented 7 years ago

Shared-memory support typically supports file-based on persisted virtual-memory based memory-based files.

This library currently does an excellent job for virtual-method based memory-based file access, but for those who want to share memory using memory-mapped files backed up by a physical file, it's missing the needed API.

This pull request does the following:

  1. Supplies the constructor overloads that will allow the user to specify a file to use for the memory-mapped file APIs.
  2. For the pre-.NET 4 support, adds the necessary memory-mapped file support to facilitate the API.
  3. Adds a unit test to demonstrate and validate the usage.
justinstenning commented 7 years ago

Thanks for the efforts. A number of changes have taken place in the last build, including renaming Array/Buffer/Header classes. Please pull latest develop branch and reapply your changes to that and resubmit pull

kasajian commented 7 years ago

ok

kasajian commented 7 years ago

Please check your e-mail.