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.
Click to show internal directories.
Click to hide internal directories.