예제 #1
0
        private BaiduPCS(IntPtr handle, string cookieFileName)
        {
            this.Handle = handle;
            this.CookieFileName = cookieFileName;

            this._onGetCaptcha = new NativePcsGetCaptchaFunction(onGetCaptcha);
            this._onHttpWrite = new NativePcsHttpWriteFunction(onHttpWrite);
            this._onHttpResponse = new NativePcsHttpResponseFunction(onHttpResponse);
            this._onHttpProgress = new NativePcsHttpProgressFunction(onHttpProgress);
            this._onReadBlock = new NativePcsReadBlockFunction(onReadSlice);
        }
예제 #2
0
 public static extern byte pcs_md5_s(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, IntPtr md5);
예제 #3
0
 public static extern IntPtr pcs_upload_slicefile(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, uint content_size, long max_speed);
예제 #4
0
 public static extern IntPtr pcs_upload_s(IntPtr handle, IntPtr to_path, byte overwrite, NativePcsReadBlockFunction read_func, IntPtr userdata, uint content_size, long max_speed);
예제 #5
0
 public extern static IntPtr pcs_upload_s(IntPtr handle, IntPtr to_path, byte overwrite, NativePcsReadBlockFunction read_func, IntPtr userdata, uint content_size);
예제 #6
0
 public extern static IntPtr pcs_upload_slicefile(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, uint content_size);
예제 #7
0
 public extern static byte pcs_md5_s(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, IntPtr md5);