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); } }
public string PhysicalPathDescription(VFSItem item) { return filePath; }
public System.IO.Stream ReadFile(VFSItem fileItem) { return File.OpenRead(filePath); }
public string PhysicalPathDescription(VFSItem item) { return ((Item)item).realpath; }
public System.IO.Stream ReadFile(VFSItem fileItem) { return File.OpenRead(((Item)fileItem).realpath); }
public string PhysicalPathDescription(VFSItem item) { return String.Format("7zip:{0}/{1}", filename, item.name); }