Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a C# equivalent to boost::interprocess::basic_string?

In C++, using boost::interprocess you can define a boost::interprocess::basic_string which is basically an abstraction over a string that's stored in a Memory Mapped File. You can seamlessly use it like any other string in your application (assuming of course you take care of thread safety).

Is there any equivalent library/nuget package/piece of code for C#?

like image 773
Omer Raviv Avatar asked Nov 11 '22 16:11

Omer Raviv


1 Answers

No. However, even if it were possible to implement transparently, strings in C# are immutable. Therefore I don't think having a library quite like that would be even very useful.

like image 60
Thorarin Avatar answered Dec 06 '22 03:12

Thorarin