Bsdiff

object Bsdiff

This module provides functionality for generating bsdiff patches from two source files (an old and new file).

The algorithm based on bsdiff(http://www.daemonology.net/bsdiff/) and ported from https://github.com/malensek/jbsdiff

class Object
trait Matchable
class Any
Bsdiff.type

Value members

Concrete methods

def diff(oldFile: File, newFile: File, patchFile: File): Unit
def diff(oldBytes: Array[Byte], newBytes: Array[Byte], out: OutputStream): Unit
def patch(old: Array[Byte], patch: Array[Byte], out: OutputStream): Unit

Using an old file and its accompanying patch, this method generates a new (updated) file and writes it to an [[OutputStream]].

Using an old file and its accompanying patch, this method generates a new (updated) file and writes it to an [[OutputStream]].

Value parameters:
old

the original ('old') state of the binary

out

an [[OutputStream]] to write the patched binary to

patch

a binary patch file to apply to the old state

def patch(oldFile: File, newFile: File, patchFile: File): Unit