// Token: 0x060003EC RID: 1004 RVA: 0x00019A84 File Offset: 0x00017C84 public static Class_160 smethod_570(string str_0, Class_163 arg_0) { Stream field_ = arg_0.field_58; arg_0.field_57 = new byte[12]; byte[] field_2 = arg_0.field_57; Class_160 class_ = new Class_160(); if (str_0 == null) { throw new Class_136("This entry requires a password."); } class_.cmethod_574(str_0); Class_163.vmethod_705(field_, field_2); byte[] array = class_.tmethod_572(field_2, field_2.Length); if (array[11] != (byte)(arg_0.field_34 >> 24 & 255)) { if ((arg_0.field_22 & 8) != 8) { throw new Class_136("The password did not match."); } if (array[11] != (byte)(arg_0.field_32 >> 8 & 255)) { throw new Class_136("The password did not match."); } } return(class_); }
// Token: 0x0600038E RID: 910 RVA: 0x00018204 File Offset: 0x00016404 public ICollection <Class_163> kmethod_507(Class_168 arg_0, string str_0) { if (arg_0 == null) { throw new ArgumentNullException("zip"); } List <Class_163> list = new List <Class_163>(); string text = (str_0 == null) ? null : str_0.Replace("/", "\\"); if (text != null) { while (text.EndsWith("\\")) { text = text.Substring(0, text.Length - 1); } } using (IEnumerator <Class_163> enumerator = arg_0.dmethod_956()) { while (enumerator.MoveNext()) { Class_163 class_ = enumerator.Current; if ((str_0 == null || Path.GetDirectoryName(class_.prop_12) == str_0 || Path.GetDirectoryName(class_.prop_12) == text) && this.vmethod_505(class_)) { list.Add(class_); } } } return(list); }
// Token: 0x06000330 RID: 816 RVA: 0x000165E7 File Offset: 0x000147E7 internal Class_133(string str_0, bool bool_0, int sayıInt_0, int sayıInt_1, Class_163 arg_0, string str_1) : base(str_0, bool_0 ? Class_128.Extracting_BeforeExtractEntry : Class_128.Extracting_AfterExtractEntry) { base.prop_0 = sayıInt_0; base.prop_1 = arg_0; this.field_0 = sayıInt_1; this.field_1 = str_1; }
// Token: 0x0600037D RID: 893 RVA: 0x00017324 File Offset: 0x00015524 internal virtual bool gmethod_493(Class_163 arg_0) { bool flag = this.field_1.gmethod_463(arg_0); switch (this.field_0) { case Class_142.AND: if (flag) { flag = this.prop_0.gmethod_463(arg_0); } break; case Class_142.OR: if (!flag) { flag = this.prop_0.gmethod_463(arg_0); } break; case Class_142.XOR: flag ^= this.prop_0.gmethod_463(arg_0); break; } return(flag); }
// Token: 0x060005FD RID: 1533 RVA: 0x000262D0 File Offset: 0x000244D0 public Class_163 vmethod_1055(string str_0) { if (string.IsNullOrEmpty(str_0)) { throw new ArgumentNullException("entryName"); } if (this.field_12) { this.field_13 = true; throw new InvalidOperationException("The stream has been closed."); } this.kmethod_1057(); this.field_5 = Class_163.lmethod_658(str_0); this.field_5.field_43 = new Class_178(this); Class_163 class_ = this.field_5; class_.field_22 |= 8; this.field_5.xmethod_601(DateTime.Now, DateTime.Now, DateTime.Now); this.field_5.prop_22 = this.prop_5; this.field_5.prop_21 = this.prop_6; this.field_5.prop_30 = this.field_2; this.field_5.prop_29 = this.prop_1; this.field_5.prop_38 = this.prop_13; this.field_5.prop_39 = this.prop_14; if (str_0.EndsWith("/")) { this.field_5.smethod_660(); } this.field_5.prop_7 = ((this.field_1 & Class_164.Windows) != Class_164.None); this.field_5.prop_8 = ((this.field_1 & Class_164.Unix) != Class_164.None); this.smethod_1050(this.field_5); this.field_20 = true; return(this.field_5); }
// Token: 0x060005F8 RID: 1528 RVA: 0x000261CD File Offset: 0x000243CD private void smethod_1050(Class_163 arg_0) { if (this.field_7.ContainsKey(arg_0.prop_12)) { this.field_13 = true; throw new ArgumentException(string.Format("The entry '{0}' already exists in the zip archive.", arg_0.prop_12)); } }
// Token: 0x06000326 RID: 806 RVA: 0x000164F8 File Offset: 0x000146F8 internal static Class_131 xmethod_441(string str_0, Class_163 arg_0, int sayıInt_0) { return(new Class_131(str_0, Class_128.Adding_AfterAddEntry) { prop_0 = sayıInt_0, prop_1 = arg_0 }); }
// Token: 0x06000320 RID: 800 RVA: 0x00016478 File Offset: 0x00014678 internal static Class_130 kmethod_437(string str_0, Class_163 arg_0, int sayıInt_0) { return(new Class_130(str_0, Class_128.Reading_AfterReadEntry) { prop_0 = sayıInt_0, prop_1 = arg_0 }); }
// Token: 0x06000322 RID: 802 RVA: 0x000164B4 File Offset: 0x000146B4 internal static Class_130 pmethod_439(string str_0, Class_163 arg_0, long sayıUınt_0, long sayıUınt_1) { return(new Class_130(str_0, Class_128.Reading_ArchiveBytesRead) { prop_1 = arg_0, prop_5 = sayıUınt_0, prop_6 = sayıUınt_1 }); }
// Token: 0x0600036F RID: 879 RVA: 0x00016D8C File Offset: 0x00014F8C internal virtual bool xmethod_481(Class_163 arg_0) { bool flag = (this.field_0 == 'D') ? arg_0.prop_27 : (!arg_0.prop_27); if (this.field_1 != Class_144.EqualTo) { flag = !flag; } return(flag); }
// Token: 0x0600032C RID: 812 RVA: 0x0001657C File Offset: 0x0001477C internal static Class_132 cmethod_444(string str_0, Class_163 arg_0, long sayıUınt_0, long sayıUınt_1) { return(new Class_132(str_0, Class_128.Saving_EntryBytesRead) { prop_4 = str_0, prop_1 = arg_0, prop_5 = sayıUınt_0, prop_6 = sayıUınt_1 }); }
// Token: 0x06000334 RID: 820 RVA: 0x00016654 File Offset: 0x00014854 internal static Class_133 pmethod_449(string str_0, Class_163 arg_0, string str_1) { return(new Class_133 { prop_4 = str_0, prop_3 = Class_128.Extracting_ExtractEntryWouldOverwrite, prop_1 = arg_0, field_1 = str_1 }); }
// Token: 0x0600033C RID: 828 RVA: 0x00016740 File Offset: 0x00014940 internal static Class_134 dmethod_456(string str_0, Class_163 arg_0, Exception arg_1) { return(new Class_134 { prop_3 = Class_128.Error_Saving, prop_4 = str_0, prop_1 = arg_0, field_0 = arg_1 }); }
// Token: 0x06000335 RID: 821 RVA: 0x00016688 File Offset: 0x00014888 internal static Class_133 smethod_450(string str_0, Class_163 arg_0, string str_1) { return(new Class_133 { prop_4 = str_0, prop_3 = Class_128.Extracting_AfterExtractEntry, prop_1 = arg_0, field_1 = str_1 }); }
// Token: 0x06000338 RID: 824 RVA: 0x000166FC File Offset: 0x000148FC internal static Class_133 gmethod_453(string str_0, Class_163 arg_0, long sayıUınt_0, long sayıUınt_1) { return(new Class_133(str_0, Class_128.Extracting_EntryBytesWritten) { prop_4 = str_0, prop_1 = arg_0, prop_5 = sayıUınt_0, prop_6 = sayıUınt_1 }); }
// Token: 0x0600038D RID: 909 RVA: 0x0001818C File Offset: 0x0001638C public ICollection <Class_163> dmethod_506(Class_168 arg_0) { if (arg_0 == null) { throw new ArgumentNullException("zip"); } List <Class_163> list = new List <Class_163>(); using (IEnumerator <Class_163> enumerator = arg_0.dmethod_956()) { while (enumerator.MoveNext()) { Class_163 class_ = enumerator.Current; if (this.vmethod_505(class_)) { list.Add(class_); } } } return(list); }
// Token: 0x060005C6 RID: 1478 RVA: 0x00025CCC File Offset: 0x00023ECC public Class_163 gmethod_1003() { if (this.field_13) { long num = Class_155.FindSignature(this.field_0, 67324752); if (num == -1L) { return(null); } this.field_0.Seek(-4L, SeekOrigin.Current); } else if (this.field_3) { this.field_0.Seek(this.field_9, SeekOrigin.Begin); } this.field_2 = Class_163.kmethod_707(this.field_5, !this.field_3); this.field_9 = this.field_0.Position; this.field_3 = true; this.field_4 = true; this.field_13 = false; return(this.field_2); }
// Token: 0x06000363 RID: 867 RVA: 0x00016AB8 File Offset: 0x00014CB8 internal virtual bool xmethod_471(Class_163 arg_0) { DateTime arg_; switch (this.field_1) { case Class_143.atime: arg_ = arg_0.prop_5; break; case Class_143.mtime: arg_ = arg_0.prop_4; break; case Class_143.ctime: arg_ = arg_0.prop_6; break; default: throw new ArgumentException("??time"); } return(this.smethod_470(arg_)); }
// Token: 0x0600038C RID: 908 RVA: 0x00018170 File Offset: 0x00016370 private bool vmethod_505(Class_163 arg_0) { return(this.field_0.gmethod_463(arg_0)); }
// Token: 0x06000369 RID: 873 RVA: 0x00016C74 File Offset: 0x00014E74 internal virtual bool dmethod_476(Class_163 arg_0) { string str_ = arg_0.prop_12.Replace("/", "\\"); return(this.vmethod_475(str_)); }
// Token: 0x06000359 RID: 857 internal abstract bool gmethod_463(Class_163 arg_0);
// Token: 0x0600035E RID: 862 RVA: 0x00016900 File Offset: 0x00014B00 internal virtual bool kmethod_467(Class_163 arg_0) { return(this.dmethod_466(arg_0.prop_24)); }
// Token: 0x06000377 RID: 887 RVA: 0x000171A8 File Offset: 0x000153A8 internal virtual bool lmethod_488(Class_163 arg_0) { FileAttributes arg_ = arg_0.prop_10; return(this.kmethod_487(arg_)); }
// Token: 0x06000329 RID: 809 RVA: 0x0001654A File Offset: 0x0001474A internal Class_132(string str_0, bool bool_0, int sayıInt_0, int sayıInt_1, Class_163 arg_0) : base(str_0, bool_0 ? Class_128.Saving_BeforeWriteEntry : Class_128.Saving_AfterWriteEntry) { base.prop_0 = sayıInt_0; base.prop_1 = arg_0; this.field_0 = sayıInt_1; }