public void Write()
        {
            br.Close();
            BinaryWriter bw = new BinaryWriter(File.Create(FileName), Encoding.Default);

            bw.Write(num1);
            bw.Write(num2);
            bw.Write(fileSize);
            bw.Write(num3);
            Archives.ForEach(i => i.Write(bw));
            uint trueSize = (uint)bw.BaseStream.Length - 16;

            bw.BaseStream.Seek(8L, SeekOrigin.Begin);
            bw.Write(trueSize);
            bw.Close();
            OpenFile(FileName);
        }
Beispiel #2
0
 public void Dispose()
 {
     // Dispose every archive
     Archives?.ForEach(x => x.Dispose());
 }