Пример #1
0
			public Stream ReadFile(VFSItem item)
			{
				FileItem file = db.Database.Files[item.archiveIndex];
				using (FileStream fs = File.OpenRead(filename)) {
					uint blockindex;
					byte[] outbuffer;
					ulong outbuffersize;
					ulong offset = 0;
					ulong outsizeprocessed = 0;

					new SevenZip.SzExtract().Extract(fs, db,(uint) item.archiveIndex, out blockindex,
							out outbuffer, out outbuffersize, ref offset, ref outsizeprocessed);

					return new MemoryStream(outbuffer);
				}
			}
Пример #2
0
		public string PhysicalPathDescription(VFSItem item)
		{
			return filePath;
		}
Пример #3
0
		public System.IO.Stream ReadFile(VFSItem fileItem)
		{
			return File.OpenRead(filePath);
		}
Пример #4
0
		public string PhysicalPathDescription(VFSItem item)
		{
			return ((Item)item).realpath;
		}
Пример #5
0
		public System.IO.Stream ReadFile(VFSItem fileItem)
		{
			return File.OpenRead(((Item)fileItem).realpath);
		}
Пример #6
0
			public string PhysicalPathDescription(VFSItem item)
			{
				return String.Format("7zip:{0}/{1}", filename, item.name);
			}