Example #1
0
        public bool IsMatch(string aBinary)
        {
            SymByte value = 0;
            SymByte mask  = SymBitUtils.CreateMask(aBinary, out value);
            bool    ret   = (mask & iValue) == value;

            return(ret);
        }
Example #2
0
 protected SymUIntBase(string aBinary, int aNumberOfBits)
 {
     iValue        = SymBitUtils.CreateMask(aBinary);
     iNumberOfBits = aNumberOfBits;
 }
Example #3
0
 public SymByte(string aBinary)
 {
     iValue = (byte)SymBitUtils.CreateMask(aBinary);
 }
Example #4
0
 public SymMask(string aBinary)
 {
     iMaskingBits = SymBitUtils.CreateMask(aBinary, out iExpectedValueAfterMasking);
 }