Beispiel #1
0
 protected ReadonlyPackageBase(ExStreamBase bs)
 {
     m_bs = bs;
 }
Beispiel #2
0
 public void Extract(PackageEntry entry, ExStreamBase exs)
 {
     if (entry.Type != PackageEntry.EntryType.File) throw new InvalidOperationException("PackageBase.Extract(...) :> Cannot directly extract directories");
     ExtractInner(entry, exs);
 }
Beispiel #3
0
 protected virtual void ExtractInner(PackageEntry entry, ExStreamBase exs)
 {
     using (ExPartStream fout = new ExPartStream(m_bs, new Range() { Lower = entry.Offset, Length = entry.Length }))
     {
         fout.WriteTo(exs);
     }
 }
Beispiel #4
0
 public void Dispose()
 {
     if (m_bs != null) m_bs.Dispose();
     m_bs = null;
 }