Sfm2Xml.ByteReader.IsCurrentData C# (CSharp) Method

IsCurrentData() private method

Search the m_FileData array at the current position and see if the passed in data is an exact match for that number of bytes.
private IsCurrentData ( byte data ) : bool
data byte
return bool
		private bool IsCurrentData(byte[] data)
		{
			for (int i=0; i<data.Length && m_position+i<m_FileData.Length; i++)
			{
				if (m_FileData[m_position+i] != data[i])
					return false;
			}
			return true;
		}