MCPcopy Create free account
hub / github.com/Redundancy/go-sync / SequentialPatcher

Function SequentialPatcher

patcher/sequential/sequential.go:23–125  ·  view source on GitHub ↗

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

(
	localFile io.ReadSeeker,
	reference patcher.BlockSource,
	requiredRemoteBlocks []patcher.MissingBlockSpan,
	locallyAvailableBlocks []patcher.FoundBlockSpan,
	maxBlockStorage uint64, // the amount of memory we're allowed to use for temporary data storage
	output io.Writer,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

PatchMethod · 0.92
TestPatchingStartFunction · 0.85
TestPatchingEndFunction · 0.85

Calls 8

SeekMethod · 0.80
RequestBlocksMethod · 0.65
GetResultChannelMethod · 0.65
WriteMethod · 0.65
EncounteredErrorMethod · 0.65

Tested by 3

TestPatchingStartFunction · 0.68
TestPatchingEndFunction · 0.68