public SplitterMergerStream(SplitterMergerInfo info) { this.info = info; currentFragment = 1; currentStream = File.OpenRead (info.GetFramentFilename (currentFragment)); currentStream.Seek (info.GetDataOffset (currentFragment), SeekOrigin.Begin); }
private static int CalculateFragmentsNumber(SplitterMergerInfo m) { int i = 1; while (File.Exists (m.GetFramentFilename (i))) { i++; } return i - 1; }