Пример #1
0
        public void LoadArchive(string path)
        {
            // Set up read buffer
            var tempStreamReader = new StreamReader(path);
            var fileLength       = (int)tempStreamReader.BaseStream.Length;

            buffer = new byte[fileLength];
            tempStreamReader.BaseStream.Read(buffer, 0, fileLength);
            tempStreamReader.Close();

            memoryStream = new DWFBMemoryStream(buffer);
            files        = new List <ArchiveFile>();

            ReadArchive();
        }