Esempio n. 1
0
        public int CalculateDifference(LValue other)
        {
            int ldiff = ModularDifferenceCalculator.Calculate(_value, other.GetValue(), RangeLvalue);

            if (ldiff == 0)
            {
                return(0);
            }

            if (ldiff == 1)
            {
                return(1);
            }

            return(ldiff * 12);
        }
Esempio n. 2
0
 public DigestStringBuilder Append(LValue lValue)
 {
     _value.Append(ToHex(swap(lValue.GetValue())));
     return(this);
 }