You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right, for Linux, Unix, MacOS we need a dotnet MemoryMapping class that accesses the classic unix mmap api.
I do not believe that the recent dotnets change this necessity, the dotnet BCL tools for memory mapping were never as efficient as this raw access we use here. Have not checked if that changed meanwhile.
You can write (and contribute) a raw mmap access for unix and most likely you will find a template here at github.
Searching for "mmap munmap language:c#"
and then filter on source files gives for instance
thanks this is helpful
seems pretty interesting maybe able to talk somebody into it and will take all your suggestions into account
hopefully we can leave the issue open just to make it easy to find, since it is something anybody could help to advance the cause
Tried to accomplish this using the example here:
AnalyzeTicks.cs
However this generated a DllNotFoundException for kernel32.
Kernel32 is a windows-only thing, looked into source a bit:
So it's the calls inside this UnsafeNativeMethods which won't work as implemented.
In recent dotnets, is it possible to reimplement UnsafeNativeMethods using MemoryMappedFile class?
Not all of MemoryMappedFile classes methods will run outside of windows, but MemoryMappedFile.CreateFromFile does work.
Any ideas or suggestions on how this might be accomplished?
The text was updated successfully, but these errors were encountered: