Beispiel #1
0
 private static IntPtr dlvsym(IntPtr libHandle, string name, string version)
 {
     byte[] functionName = Encoding.UTF8.GetBytes(name);
     fixed(byte *pName = functionName)
     {
         fixed(byte *pVersion = Encoding.UTF8.GetBytes(version))
         {
             return(new IntPtr(LibC.dlvsym(libHandle.ToPointer(), pName, pVersion)));
         }
     }
 }
 private static IntPtr dlvsym(IntPtr libHandle, string name, string version)
 {
     byte[] functionName = Encoding.UTF8.GetBytes(name);
     fixed(byte *pName = functionName)
     {
         fixed(byte *pVersion = Encoding.UTF8.GetBytes(version))
         {
             Console.WriteLine($"Found dlvsym: {LibraryName} {name}:{version}");
             return(new IntPtr(LibC.dlvsym(libHandle.ToPointer(), pName, pVersion)));
         }
     }
 }