trungnt2910/MemoryModule.NET

MacOS support

Opened this issue · 4 comments

Support for MacOS? Should it be possible?
This might be a good guide.
A better repo with MIT license.

A partial effort can be found here

image
try it

Which library is that?

https://docs.microsoft.com/zh-cn/dotnet/api/system.runtime.interopservices.nativelibrary?view=net-5.0

Oh, that function.

The whole purpose of MemoryModule.NET is to load native libraries without touching the disk. The target binary might be some embedded resource, or a file downloaded from the internet.

The functions you showed are just simple wrappers around MacOS's native dlopen and dlsym, which requires libraries to be present on disk.