Giter VIP home page Giter VIP logo

Comments (3)

andrewhayden avatar andrewhayden commented on July 28, 2024

I am not aware of any plans to port this library to C or C++, but it is certainly possible since zlib, the deflate library, is certainly available in those languages as well (and since both the Android Open Source Project and the Open JDK use the same library, it shouldn't be a problem from a compatibility standpoint).

Note that you could generate in Java (server-side, presumably most servers can run Java if needed) and apply in C/C++.

You are of course free to implement your own patch applier in C++ that is compatible with the patch format, which is described in full detail in the README, The patch applier is far less complex than the patch generator. The logic is simpler and more straightforward because all the hard work of planning and generating the patch has been done already.

The FileByFileV1DeltaApplier is the best starting place to understand what you need to do. If you follow the workflow in that class down into all the other various classes it uses, you will find 100% of the logic required to apply a patch and you can then either implement something compatible on your own or attempt a straight C/C++ port of the class structure, as you see fit.

Good luck!

from archive-patcher.

andrewhayden avatar andrewhayden commented on July 28, 2024

Quick additional note - if re-implementing do be aware that although bsdiff is used as the delta algorithm, it has been stripped of its normal bzip compression. I opened a new issue to update the README documentation to make this clearer to anyone else trying to do something similar (issue 16).

from archive-patcher.

kaedea avatar kaedea commented on July 28, 2024

Thanks for the support above. There is enough info.

from archive-patcher.

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.