protected void SwitchToFile(BinaryFile newFile) { if (newFile == null) { return; } if (!readers.ContainsKey(newFile)) { readers.Add(newFile, newFile.CreateReader()); } reader = readers[newFile]; currentFile = newFile; }
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; }