andys / libbsdiff Goto Github PK
View Code? Open in Web Editor NEWLibrary extracted from bsdiff to create patches between two objects in memory
Library extracted from bsdiff to create patches between two objects in memory
libbsddiff: Extracted from bsdiff-4.3 by Andrew Snow ([email protected]) ========================================================================= libbsdiff aims to extract the functionality of the bsdiff utility into a standalone C library. This allows you to generate a patch between two blocks of data in memory, into a 3rd block of memory, without touching the filesystem. Generate a patch ---------------- The destination buffer for the patch must be preallocated and you pass in the maximum size you've allocated and are willing to allow the patch to be. The function returns the actual amount of memory used for the patch. Upon errors (due to lack of memory), the function returns 0. #include "libbsdiff.h" patch_size = bsdiff(old_data, oldsize, new_data, newsize, patch, max_patchsize); Apply a patch ------------- A function is provider to let you find out the size of the patch target so you know how much memory to allocate in advance. Upon errors (due to corrupt or invalid patch), the function returns 0. patched_data = malloc( size_of_patched(patch) ); result = bspatch(old_data, oldsize, patch, patch_size, patched_data); Contact ------- Andrew Snow <[email protected]>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.