pub const svn_delta_action_svn_txdelta_target: svn_delta_action = 1;
Expand description
Append the @a length bytes at @a offset in the target view, to the target.
It must be the case that 0 <= @a offset < current position in the target view.
However! @a offset + @a length may be beyond the end of the existing target data. “Where the heck does the text come from, then?” If you start at @a offset, and append @a length bytes one at a time, it’ll work out — you’re adding new bytes to the end at the same rate you’re reading them from the middle. Thus, if your current target text is “abcdefgh”, and you get an #svn_txdelta_target instruction whose @a offset is 6 and whose @a length is 7, the resulting string is “abcdefghghghghg”. This trick is actually useful in encoding long runs of consecutive characters, long runs of CR/LF pairs, etc.