NGit.Patch.Patch.ParseGitBinary C# (CSharp) 메소드

ParseGitBinary() 개인적인 메소드

private ParseGitBinary ( NGit.Patch.FileHeader fh, int c, int end ) : int
fh NGit.Patch.FileHeader
c 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;
        }