File: _generated\2\LibraryImports.g.cs
Web Access
Project: src\src\runtime\src\coreclr\tools\aot\ILCompiler.Diagnostics\ILCompiler.Diagnostics.csproj (ILCompiler.Diagnostics)
// <auto-generated/>
namespace ILCompiler.Diagnostics
{
    public unsafe partial class PdbWriter
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "11.0.14.22804")]
        [global::System.Runtime.CompilerServices.SkipLocalsInitAttribute]
        private static partial void CreateNGenPdbWriter(string ngenImagePath, string pdbPath, out nint ngenPdbWriterPtr)
        {
            ngenPdbWriterPtr = default;
            // Pin - Pin data in preparation for calling the P/Invoke.
            fixed (nint* __ngenPdbWriterPtr_native = &ngenPdbWriterPtr)
            fixed (void* __pdbPath_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(pdbPath))
            fixed (void* __ngenImagePath_native = &global::System.Runtime.InteropServices.Marshalling.Utf16StringMarshaller.GetPinnableReference(ngenImagePath))
            {
                __PInvoke((ushort*)__ngenImagePath_native, (ushort*)__pdbPath_native, __ngenPdbWriterPtr_native);
            }
 
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("Microsoft.DiaSymReader.Native", EntryPoint = "CreateNGenPdbWriter", ExactSpelling = true, CharSet = global::System.Runtime.InteropServices.CharSet.Unicode)]
            [global::System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute((global::System.Runtime.InteropServices.DllImportSearchPath)4098)]
            static extern unsafe void __PInvoke(ushort* __ngenImagePath_native, ushort* __pdbPath_native, nint* __ngenPdbWriterPtr_native);
        }
    }
}