예제 #1
0
        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();
            }
        }
예제 #2
0
 public SARCHashTable()
 {
     Header  = new SAHTHeader();
     Entries = new List <SAHTEntry>();
 }