curl_share_init() 개인적인 메소드

private curl_share_init ( ) : IntPtr
리턴 System.IntPtr
예제 #1
0
파일: CurlShare.cs 프로젝트: zfyno1/Jackett
        private Object _userData;                              // user data for delegates

        /// <summary>
        ///     Constructor
        /// </summary>
        /// <exception cref="System.InvalidOperationException">
        ///     This is thrown
        ///     if <see cref="Curl" /> hasn't bee properly initialized.
        /// </exception>
        /// <exception cref="System.NullReferenceException">
        ///     This is thrown if
        ///     the native <c>share</c> handle wasn't created successfully.
        /// </exception>
        public CurlShare()
        {
            Curl.EnsureCurl();
            _pShare = NativeMethods.curl_share_init();
            EnsureHandle();
            LockFunction   = null;
            UnlockFunction = null;
            UserData       = null;
            installDelegates();
        }