internal static ReadProgressEventArgs Started(string archiveName) { var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_Started); return x; }
internal static ReadProgressEventArgs Before(string archiveName, int entriesTotal) { var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_BeforeReadEntry); x.EntriesTotal = entriesTotal; return x; }
internal static ReadProgressEventArgs ByteUpdate(string archiveName, ZipEntry entry, Int64 bytesXferred, Int64 totalBytes) { var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_ArchiveBytesRead); x.CurrentEntry = entry; x.BytesTransferred = bytesXferred; x.TotalBytesToTransfer = totalBytes; return x; }
internal static ReadProgressEventArgs After(string archiveName, ZipEntry entry, int entriesTotal) { var x = new ReadProgressEventArgs(archiveName, ZipProgressEventType.Reading_AfterReadEntry); x.EntriesTotal = entriesTotal; x.CurrentEntry = entry; return x; }