BitMiracle.LibTiff.Classic.Tiff.summarize C# (CSharp) Method

summarize() private method

private summarize ( int summand1, int summand2, string where ) : int
summand1 int
summand2 int
where string
return int
        private int summarize(int summand1, int summand2, string where)
        {
            int bytes = summand1 + summand2;
            if (bytes - summand1 != summand2)
            {
                ErrorExt(this, m_clientdata, m_name, "Integer overflow in {0}", where);
                bytes = 0;
            }

            return bytes;
        }
Tiff