Пример #1
0
 internal static extern int curl_shim_install_delegates(IntPtr pCurl, IntPtr pThis,
     CURL_WRITE_DELEGATE pWrite, CURL_READ_DELEGATE pRead,
     CURL_PROGRESS_DELEGATE pProgress, CURL_DEBUG_DELEGATE pDebug,
     CURL_HEADER_DELEGATE pHeader, CURL_SSL_CTX_DELEGATE pCtx,
     CURL_IOCTL_DELEGATE pIoctl); 
Пример #2
0
 internal static extern int curl_shim_install_delegates(IntPtr pCurl, IntPtr pThis,
                                                        CURL_WRITE_DELEGATE pWrite, CURL_READ_DELEGATE pRead,
                                                        CURL_PROGRESS_DELEGATE pProgress, CURL_DEBUG_DELEGATE pDebug,
                                                        CURL_HEADER_DELEGATE pHeader, CURL_SSL_CTX_DELEGATE pCtx,
                                                        CURL_IOCTL_DELEGATE pIoctl);
Пример #3
0
        internal static int curl_shim_install_delegates(IntPtr pCurl, IntPtr pThis,
                                                        CURL_WRITE_DELEGATE pWrite, CURL_READ_DELEGATE pRead,
                                                        CURL_PROGRESS_DELEGATE pProgress, CURL_DEBUG_DELEGATE pDebug,
                                                        CURL_HEADER_DELEGATE pHeader, CURL_SSL_CTX_DELEGATE pCtx,
                                                        CURL_IOCTL_DELEGATE pIoctl)
        {
            IntPtr write    = Marshal.GetFunctionPointerForDelegate(pWrite);
            IntPtr read     = Marshal.GetFunctionPointerForDelegate(pRead);
            IntPtr progress = Marshal.GetFunctionPointerForDelegate(pProgress);
            IntPtr debug    = Marshal.GetFunctionPointerForDelegate(pDebug);
            IntPtr header   = Marshal.GetFunctionPointerForDelegate(pHeader);
            IntPtr ctx      = Marshal.GetFunctionPointerForDelegate(pCtx);
            IntPtr ioctl    = Marshal.GetFunctionPointerForDelegate(pIoctl);

            return(CURL_curl_shim_install_delegates(pCurl, pThis, write, read, progress, debug, header, ctx, ioctl));
        }