private void InternalOpen() { if (!Stream.CanSeek) { m_reader = m_reader.ReadBytesInNewBigEndianReader((int)m_reader.BytesAvailable); } if (m_reader.ReadByte() != 2 || m_reader.ReadByte() != 1) { throw new FileLoadException("Corrupted d2p header"); } ReadTable(); ReadProperties(); ReadEntriesDefinitions(); }