MacOS support
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
try it
Which library is that?
@trungnt2910 https://docs.microsoft.com/zh-cn/dotnet/api/system.runtime.interopservices.nativelibrary?view=net-5.0 https://github.com/dotnet/runtime/blob/3ae87395f638a533f37b8e3385f6d3f199a72f4f/src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/NativeLibrary.cs
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.