Giter Site home page Giter Site logo

Comments (4)

sisong avatar sisong commented on June 2, 2024

客户端需要4个步骤: 下载hsyni文件,diff计算出需要下载的块信息,下载块,和已有old数据合并得到new数据。
具体到命令行,可以一次执行完所有4个步骤得到最终的new数据,也可以每个步骤单独执行。
建议阅读中文版的说明,命令行的使用有解释。

from hsynz.

RPG3D avatar RPG3D commented on June 2, 2024

预计客户端应该是先检查(下载)最新的index文件,即readme的【下载文件】
然后计算下载大小,即 【查询同步信息】,此时可以在界面告知下载大小;保存cacheTempFile
然后下载更新包,就是 【创建本地补丁】
最后执行【本地打补丁】

参数cacheTempFile可以在哪些阶段使用呢

from hsynz.

Thur4day avatar Thur4day commented on June 2, 2024

预计客户端应该是先检查(下载)最新的index文件,即readme的【下载文件】 然后计算下载大小,即 【查询同步信息】,此时可以在界面告知下载大小;保存cacheTempFile 然后下载更新包,就是 【创建本地补丁】 最后执行【本地打补丁】

参数cacheTempFile可以在哪些阶段使用呢

请教一下,客户端的hsynz.IRangeDownloader实现能给讲解一下吗?
如何实现readDownloadedData方法,写入到本地补丁文件?

from hsynz.

sisong avatar sisong commented on June 2, 2024

@Thur4day
readDownloadedData方法,并不负责写本地补丁文件; 这个函数的任务是将你自己下载到的块的数据通过一个缓冲区传递给native层; native层会根据任务要求完成patch或保存补丁的任务。

from hsynz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.