Example #1
0
        private static bool verify(byte[] data, byte[] cdata)
        {
            var ddata = new decap(cdata).depack();

            if (data.Length != ddata.Length)
            {
                return(false);
            }

            for (int i = 0; i < data.Length; i++)
            {
                if (data[i] != ddata[i])
                {
                    return(false);
                }
            }

            return(true);
        }
Example #2
0
File: cap.cs Project: svendahl/cap
		private static bool verify(byte[] data, byte[] cdata)
		{

			var ddata = new decap(cdata).depack();

			if (data.Length != ddata.Length)
			{
				return false;
			}

			for (int i = 0; i < data.Length; i++)
			{
				if (data[i] != ddata[i])
				{
					return false;
				}
			}

			return true;
		}