MemoryModule.NET icon indicating copy to clipboard operation
MemoryModule.NET copied to clipboard

MacOS support

Open trungnt2910 opened this issue 4 years ago • 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

trungnt2910 avatar Sep 09 '21 12:09 trungnt2910

image try it

GGLaunch avatar Feb 09 '22 07:02 GGLaunch

Which library is that?

trungnt2910 avatar Feb 09 '22 08:02 trungnt2910

@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

GGLaunch avatar Feb 11 '22 06:02 GGLaunch

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.

trungnt2910 avatar Feb 11 '22 09:02 trungnt2910