sequential

package
v0.0.0-...-8931874 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Sequential Patcher will stream the patched version of the file to output, since it works strictly in order, it cannot patch the local file directly (since it might overwrite a block needed later), so there would have to be a final copy once the patching was done.

Index

Constants

View Source
const (
	ABSOLUTE_POSITION = 0
)

Variables

This section is empty.

Functions

func SequentialPatcher

func SequentialPatcher(
	localFile io.ReadSeeker,
	reference patcher.BlockSource,
	requiredRemoteBlocks []patcher.MissingBlockSpan,
	locallyAvailableBlocks []patcher.FoundBlockSpan,
	maxBlockStorage uint64,
	output io.Writer,
) error

This simple example currently doesn't do any pipelining of needed blocks, nor does it deal with blocks being delivered out of order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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