Beispiel #1
0
 public PSARC()
 {
     this.header = new PSARC.Header();
     this.TOC    = new List <Entry>();
     this.TOC.Add(new Entry());
     this.zBlocksSizeList = new uint[] { };
 }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         header = null;
         TOC.Clear();
         if (_reader != null)
         {
             _reader.Dispose();
         }
         if (_writer != null)
         {
             _writer.Dispose();
         }
     }
 }
Beispiel #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         header = null;
         foreach (var entry in TOC)
         {
             if (entry.Data != null)
             {
                 entry.Data.Close();
             }
         }
         TOC.Clear();
         if (_reader != null)
         {
             _reader.Dispose();
         }
         if (_writer != null)
         {
             _writer.Dispose();
         }
     }
 }