MCPcopy Create free account
hub / github.com/antonmedv/gitmal / NewBinaryApplier

Function NewBinaryApplier

pkg/gitdiff/apply_binary.go:21–27  ·  view source on GitHub ↗

NewBinaryApplier creates an BinaryApplier that reads data from src and writes modified data to dst.

(dst io.Writer, src io.ReaderAt)

Source from the content-addressed store, hash-verified

19// NewBinaryApplier creates an BinaryApplier that reads data from src and
20// writes modified data to dst.
21func NewBinaryApplier(dst io.Writer, src io.ReaderAt) *BinaryApplier {
22 a := BinaryApplier{
23 dst: dst,
24 src: src,
25 }
26 return &a
27}
28
29// ApplyFragment applies the changes in the fragment f and writes the result to
30// dst. ApplyFragment can be called at most once.

Callers 2

TestApplyBinaryFragmentFunction · 0.85
ApplyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestApplyBinaryFragmentFunction · 0.68