예제 #1
0
 public SymMask(string aBinary, TShiftDirection aDirection, uint aCount)
     : this( aBinary )
 {
     if (aDirection == TShiftDirection.ELeft)
     {
         iShift = -Convert.ToInt32(aCount);
     }
     else
     {
         iShift = Convert.ToInt32(aCount);
     }
 }
예제 #2
0
 public SymMask(uint aMask, uint aValue, TShiftDirection aDirection, int aCount)
 {
     iMaskingBits = aMask;
     iExpectedValueAfterMasking = aValue;
     if (aDirection == TShiftDirection.ELeft)
     {
         iShift = -Convert.ToInt32(aCount);
     }
     else
     {
         iShift = Convert.ToInt32(aCount);
     }
 }
예제 #3
0
 public SymMask(uint aMask, TShiftDirection aDirection, int aCount)
     : this(aMask, aMask, aDirection, aCount)
 {
 }