snapdiff

package module
v0.0.0-...-87dcabc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2016 License: MIT Imports: 7 Imported by: 1

README

This is a fork of binarydist

GoDoc

It is not comptabile with bsdiff, and uses snappy for compression of patches instead of bzip2.

Documentation

Overview

Package snapdiff implements binary diff and patch as described on http://www.daemonology.net/bsdiff/, but changed to use snappy as the compression

Index

Constants

View Source
const MaxBufferSize = int64(32 * 1024)

Variables

This section is empty.

Functions

func Diff

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

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL