private ParseHunk ( int ptr, int end ) : int | ||
ptr | int | |
end | int | |
Результат | int |
private int ParseGitBinary(FileHeader fh, int c, int end) { BinaryHunk postImage = new BinaryHunk(fh, c); int nEnd = postImage.ParseHunk(c, end); if (nEnd < 0) { // Not a binary hunk. // Error(fh.buf, c, JGitText.Get().missingForwardImageInGITBinaryPatch); return(c); } c = nEnd; postImage.endOffset = c; fh.forwardBinaryHunk = postImage; BinaryHunk preImage = new BinaryHunk(fh, c); int oEnd = preImage.ParseHunk(c, end); if (oEnd >= 0) { c = oEnd; preImage.endOffset = c; fh.reverseBinaryHunk = preImage; } return(c); }
private int ParseGitBinary(FileHeader fh, int c, int end) { BinaryHunk postImage = new BinaryHunk(fh, c); int nEnd = postImage.ParseHunk(c, end); if (nEnd < 0) { // Not a binary hunk. // Error(fh.buf, c, JGitText.Get().missingForwardImageInGITBinaryPatch); return c; } c = nEnd; postImage.endOffset = c; fh.forwardBinaryHunk = postImage; BinaryHunk preImage = new BinaryHunk(fh, c); int oEnd = preImage.ParseHunk(c, end); if (oEnd >= 0) { c = oEnd; preImage.endOffset = c; fh.reverseBinaryHunk = preImage; } return c; }