コード例 #1
0
 public VirtualFileStorageDriver(VirtualFileStorage storage, VirtualFileStorageDriver parent, string rootPath)
 {
     Storage  = storage;
     Parent   = parent;
     RootPath = rootPath;
     Storage.AddDriver(this);
 }
コード例 #2
0
 public override void Close()
 {
     if (_fs != null)
     {
         --_fs._countOpenStream;
         _fs = null;
     }
     base.Close();
 }
コード例 #3
0
 public TrackedStream(VirtualFileStorage fs, Stream s)
 {
     _fs = fs;
     ++_fs._countOpenStream;
     _s = s;
 }
コード例 #4
0
 internal VirtualFileStorageDriver(VirtualFileStorage storage)
 {
     Storage  = storage;
     Parent   = null;
     RootPath = String.Empty;
 }
コード例 #5
0
 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)));
 }
コード例 #6
0
 internal VirtualFileStorageDriverRoot(VirtualFileStorage storage)
     : base(storage)
 {
 }