public VirtualFileStorageDriver(VirtualFileStorage storage, VirtualFileStorageDriver parent, string rootPath)
 {
     Storage  = storage;
     Parent   = parent;
     RootPath = rootPath;
     Storage.AddDriver(this);
 }
Ejemplo n.º 2
0
 public override void Close()
 {
     if (_fs != null)
     {
         --_fs._countOpenStream;
         _fs = null;
     }
     base.Close();
 }
Ejemplo n.º 3
0
 public TrackedStream(VirtualFileStorage fs, Stream s)
 {
     _fs = fs;
     ++_fs._countOpenStream;
     _s = s;
 }
 internal VirtualFileStorageDriver(VirtualFileStorage storage)
 {
     Storage  = storage;
     Parent   = null;
     RootPath = String.Empty;
 }
 public VirtualFileStorageDriverRootZip(VirtualFileStorage storage, VirtualFileStorageDriver parent, string rootPath)
     : base(storage, parent, rootPath)
 {
     Debug.Assert(rootPath.EndsWith("\\"));
     _file = new ZipArchive(File.OpenRead(rootPath.Substring(0, rootPath.Length - 1)));
 }
Ejemplo n.º 6
0
 internal VirtualFileStorageDriverRoot(VirtualFileStorage storage)
     : base(storage)
 {
 }