public SARCHashTable(byte[] Data) { EndianBinaryReader er = new EndianBinaryReader(new MemoryStream(Data), Endianness.LittleEndian); try { Header = new SAHTHeader(er); er.BaseStream.Position = Header.DataOffset; Entries = new List <SAHTEntry>(); for (int i = 0; i < Header.NrEntries; i++) { Entries.Add(new SAHTEntry(er)); } } finally { er.Close(); } }
public SARCHashTable() { Header = new SAHTHeader(); Entries = new List <SAHTEntry>(); }