Example #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);
        }
Example #2
0
 public DigestStringBuilder Append(LValue lValue)
 {
     _value.Append(ToHex(swap(lValue.GetValue())));
     return(this);
 }
Example #3
0
 private void WithLValueData(int data)
 {
     this._lValue = new LValue(swap(data));
 }