File: LibraryImports.g.cs
Project: src\src\libraries\System.Net.Quic\src\System.Net.Quic.csproj (System.Net.Quic)
// <auto-generated/>
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_DeflateInit2_", ExactSpelling = true)]
        internal static unsafe extern partial global::System.IO.Compression.ZLibNative.ErrorCode DeflateInit2_(global::System.IO.Compression.ZLibNative.ZStream* stream, global::System.IO.Compression.ZLibNative.CompressionLevel level, global::System.IO.Compression.ZLibNative.CompressionMethod method, int windowBits, int memLevel, global::System.IO.Compression.ZLibNative.CompressionStrategy strategy);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_Deflate", ExactSpelling = true)]
        internal static unsafe extern partial global::System.IO.Compression.ZLibNative.ErrorCode Deflate(global::System.IO.Compression.ZLibNative.ZStream* stream, global::System.IO.Compression.ZLibNative.FlushCode flush);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_DeflateEnd", ExactSpelling = true)]
        internal static unsafe extern partial global::System.IO.Compression.ZLibNative.ErrorCode DeflateEnd(global::System.IO.Compression.ZLibNative.ZStream* stream);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_InflateInit2_", ExactSpelling = true)]
        internal static unsafe extern partial global::System.IO.Compression.ZLibNative.ErrorCode InflateInit2_(global::System.IO.Compression.ZLibNative.ZStream* stream, int windowBits);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_InflateReset2_", ExactSpelling = true)]
        internal static unsafe extern partial global::System.IO.Compression.ZLibNative.ErrorCode InflateReset2_(global::System.IO.Compression.ZLibNative.ZStream* stream, int windowBits);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_Inflate", ExactSpelling = true)]
        internal static unsafe extern partial global::System.IO.Compression.ZLibNative.ErrorCode Inflate(global::System.IO.Compression.ZLibNative.ZStream* stream, global::System.IO.Compression.ZLibNative.FlushCode flush);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_InflateEnd", ExactSpelling = true)]
        internal static unsafe extern partial global::System.IO.Compression.ZLibNative.ErrorCode InflateEnd(global::System.IO.Compression.ZLibNative.ZStream* stream);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class ZLib
    {
        [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.IO.Compression.Native", EntryPoint = "CompressionNative_Crc32", ExactSpelling = true)]
        internal static unsafe extern partial uint crc32(uint crc, byte* buffer, int len);
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class Sys
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "42.42.42.42")]
        private static partial int PathConf(string path, global::Interop.Sys.PathConfName name)
        {
            int __lastError;
            byte* __path_native = default;
            int __retVal = default;
            // Setup - Perform required setup.
            scoped global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn __path_native__marshaller = new();
            try
            {
                // Marshal - Convert managed data to native data.
                __path_native__marshaller.FromManaged(path, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn.BufferSize]);
                {
                    // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                    __path_native = __path_native__marshaller.ToUnmanaged();
                    global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                    __retVal = __PInvoke(__path_native, name);
                    __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
                }
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __path_native__marshaller.Free();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_PathConf", ExactSpelling = true)]
            static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.PathConfName __name_native);
        }
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class Sys
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "42.42.42.42")]
        internal static partial int FStat(global::System.Runtime.InteropServices.SafeHandle fd, out global::Interop.Sys.FileStatus output)
        {
            int __lastError;
            output = default;
            nint __fd_native = default;
            int __retVal = default;
            // Setup - Perform required setup.
            global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::System.Runtime.InteropServices.SafeHandle>.ManagedToUnmanagedIn __fd_native__marshaller = new();
            try
            {
                // Marshal - Convert managed data to native data.
                __fd_native__marshaller.FromManaged(fd);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (global::Interop.Sys.FileStatus* __output_native = &output)
                {
                    // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                    __fd_native = __fd_native__marshaller.ToUnmanaged();
                    global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                    __retVal = __PInvoke(__fd_native, __output_native);
                    __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
                }
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __fd_native__marshaller.Free();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_FStat", ExactSpelling = true)]
            static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.FileStatus* __output_native);
        }
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class Sys
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "42.42.42.42")]
        internal static partial int Stat(string path, out global::Interop.Sys.FileStatus output)
        {
            int __lastError;
            output = default;
            byte* __path_native = default;
            int __retVal = default;
            // Setup - Perform required setup.
            scoped global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn __path_native__marshaller = new();
            try
            {
                // Marshal - Convert managed data to native data.
                __path_native__marshaller.FromManaged(path, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn.BufferSize]);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (global::Interop.Sys.FileStatus* __output_native = &output)
                {
                    // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                    __path_native = __path_native__marshaller.ToUnmanaged();
                    global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                    __retVal = __PInvoke(__path_native, __output_native);
                    __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
                }
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __path_native__marshaller.Free();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_Stat", ExactSpelling = true)]
            static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native);
        }
    }
}
internal static unsafe partial class Interop
{
    internal static unsafe partial class Sys
    {
        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Interop.LibraryImportGenerator", "42.42.42.42")]
        internal static partial int LStat(string path, out global::Interop.Sys.FileStatus output)
        {
            int __lastError;
            output = default;
            byte* __path_native = default;
            int __retVal = default;
            // Setup - Perform required setup.
            scoped global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn __path_native__marshaller = new();
            try
            {
                // Marshal - Convert managed data to native data.
                __path_native__marshaller.FromManaged(path, stackalloc byte[global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ManagedToUnmanagedIn.BufferSize]);
                // Pin - Pin data in preparation for calling the P/Invoke.
                fixed (global::Interop.Sys.FileStatus* __output_native = &output)
                {
                    // PinnedMarshal - Convert managed data to native data that requires the managed data to be pinned.
                    __path_native = __path_native__marshaller.ToUnmanaged();
                    global::System.Runtime.InteropServices.Marshal.SetLastSystemError(0);
                    __retVal = __PInvoke(__path_native, __output_native);
                    __lastError = global::System.Runtime.InteropServices.Marshal.GetLastSystemError();
                }
            }
            finally
            {
                // CleanupCallerAllocated - Perform cleanup of caller allocated resources.
                __path_native__marshaller.Free();
            }
 
            global::System.Runtime.InteropServices.Marshal.SetLastPInvokeError(__lastError);
            return __retVal;
            // Local P/Invoke
            [global::System.Runtime.InteropServices.DllImportAttribute("libSystem.Native", EntryPoint = "SystemNative_LStat", ExactSpelling = true)]
            static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native);
        }
    }
}