Exemplo n.º 1
0
 public bool Matches(int[] bytes)
 {
     if (!CheckValid())
     {
         return(false);
     }
     return(BanMgr.Match(m_MaskBytes, bytes));
 }
Exemplo n.º 2
0
 public bool Matches(byte[] bytes)
 {
     if (!CheckValid())
     {
         return(false);
     }
     for (var i = 0; i < m_MaskBytes.Length; i++)
     {
         var bte = bytes[i];
         if (!BanMgr.Matches(m_MaskBytes[i], bte))
         {
             return(false);
         }
     }
     return(false);
 }
Exemplo n.º 3
0
        public bool Matches(byte[] bytes)
        {
            if (!this.CheckValid())
            {
                return(false);
            }
            for (int index = 0; index < this.m_MaskBytes.Length; ++index)
            {
                byte num = bytes[index];
                if (!BanMgr.Matches(this.m_MaskBytes[index], (int)num))
                {
                    return(false);
                }
            }

            return(false);
        }