Example #1
0
 public BinaryOffset Substract(BinaryOffset other)
 {
     return(Add(new BinaryOffset(-other.Bytes, (SByte)(-other.Bits))));
 }
Example #2
0
        public BinaryOffset Add(BinaryOffset other)
        {
            var bitsSum = this.Bits + other.Bits;

            return(new BinaryOffset(this.Bytes + other.Bytes + bitsSum / Constants.BitsInByte, (SByte)(bitsSum % Constants.BitsInByte)));
        }