Registry / utility / kr-binarydist

kr-binarydist

JSON →
library0.1.0gogounverified

Package binarydist implements binary diff and patch as described on http://www.daemonology.net/bsdiff/.

go get github.com/kr/binarydist
INSTALL
IMPORT
SIG · KR-BINARYDIST
K
kr-binarydist
utilitygov0.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

binarydist
github.com/kr/binarydist

Compute a binary diff between two byte slices.

package main import ( "bytes" "fmt" "github.com/kr/binarydist" ) func main() { old := []byte("hello world") new := []byte("hello go") var patch bytes.Buffer err := binarydist.Diff(bytes.NewReader(old), bytes.NewReader(new), &patch) if err != nil { panic(err) } fmt.Println("Patch size:", patch.Len()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources