NewBinaryApplier creates an BinaryApplier that reads data from src and writes modified data to dst.
(dst io.Writer, src io.ReaderAt)
| 19 | // NewBinaryApplier creates an BinaryApplier that reads data from src and |
| 20 | // writes modified data to dst. |
| 21 | func 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. |
no outgoing calls