equinox: github.com/equinox-io/equinox/internal/go-update/internal/binarydist Index | Files

package binarydist

import "github.com/equinox-io/equinox/internal/go-update/internal/binarydist"

Package binarydist implements binary diff and patch as described on http://www.daemonology.net/bsdiff/. It reads and writes files compatible with the tools there.


Package Files

bzip2.go diff.go doc.go encoding.go patch.go seek.go


var ErrCorrupt = errors.New("corrupt patch")

func Diff Uses

func Diff(old, new io.Reader, patch io.Writer) error

Diff computes the difference between old and new, according to the bsdiff algorithm, and writes the result to patch.

func Patch Uses

func Patch(old io.Reader, new io.Writer, patch io.Reader) error

Patch applies patch to old, according to the bspatch algorithm, and writes the result to new.

Package binarydist imports 7 packages (graph) and is imported by 1 packages. Updated 2016-07-21. Refresh now. Tools for package owners.