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