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); }
public static extern byte pcs_md5_s(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, IntPtr md5);
public static extern IntPtr pcs_upload_slicefile(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, uint content_size, long max_speed);
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);
public extern static IntPtr pcs_upload_s(IntPtr handle, IntPtr to_path, byte overwrite, NativePcsReadBlockFunction read_func, IntPtr userdata, uint content_size);
public extern static IntPtr pcs_upload_slicefile(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, uint content_size);
public extern static byte pcs_md5_s(IntPtr handle, NativePcsReadBlockFunction read_func, IntPtr userdata, IntPtr md5);