internal static extern void mk_http_downloader_start(System.IntPtr ctx, [System.Runtime.InteropServices.InAttribute()][System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string url, [System.Runtime.InteropServices.InAttribute()][System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string file, on_mk_download_complete cb, System.IntPtr user_data);
/// <summary> /// 开始http[s]下载 /// </summary> /// <param name="ctx">下载器指针</param> /// <param name="url">http[s]下载url</param> /// <param name="file">文件保存路径</param> /// <param name="cb">回调函数</param> /// <param name="user_data">用户数据指针</param> public static void mk_http_downloader_start(System.IntPtr ctx, string url, string file, on_mk_download_complete cb, System.IntPtr user_data) { if (LibraryConst.IsWindows) { mk_httpclient_windows.mk_http_downloader_start(ctx, url, file, cb, user_data); } else { mk_httpclient_unix.mk_http_downloader_start(ctx, url, file, cb, user_data); } }
internal static extern void mk_http_downloader_start(IntPtr mk_http_downloader, [In()][MarshalAs(UnmanagedType.LPStr)] string url, [In()][MarshalAs(UnmanagedType.LPStr)] string file, on_mk_download_complete callback, IntPtr user_data);