Exemple #1
0
 protected void SwitchToFile(BinaryFile newFile)
 {
     if (newFile == null)
     {
         return;
     }
     if (!readers.ContainsKey(newFile))
     {
         readers.Add(newFile, newFile.CreateReader());
         newFile.InitFileReadMap(readers[newFile].BaseStream.Length);
     }
     reader      = readers[newFile];
     currentFile = newFile;
 }