Esempio n. 1
0
 public static IntPtr Find(IntPtr handle, string name)
 {
     if (Ste.Platform == Platform.Windows)
     {
         return(LibraryHelper_Windows.GetProcAddress(handle, name));
     }
     if (Ste.Platform == Platform.Linux)
     {
         return(LibraryHelper_Linux.dlsym(handle, name));
     }
     return(LibraryHelper_Android.dlsym(handle, name));
 }
Esempio n. 2
0
 public static IntPtr Load(string fileName)
 {
     if (Ste.Platform == Platform.Windows)
     {
         return(LibraryHelper_Windows.LoadLibraryW(fileName));
     }
     if (Ste.Platform == Platform.Linux)
     {
         return(LibraryHelper_Linux.dlopen(fileName, 0x0001));
     }
     return(LibraryHelper_Android.dlopen(fileName, 0x0001));
 }