bigloo.foreign.bigloo_strcmp_at C# (CSharp) Method

bigloo_strcmp_at() public static method

public static bigloo_strcmp_at ( byte s1, byte s2, int d ) : bool
s1 byte
s2 byte
d int
return bool
        public static bool bigloo_strcmp_at(byte[] s1, byte[] s2, int d)
        {
            int n1 = s1.Length;
            int n2 = s2.Length;

            if ((d < 0) || (n1 < n2 + d))
               return false;

            for (int i = 0; i < n2; ++i)
               if (s1[i + d] != s2[i])
              return false;

            return true;
        }
foreign