private Class122 method_7(Class122 class122_1) { Class122 class2 = class122_1; if (class122_1.method_12() != null) { Class122 class3 = class122_1.method_12(); if ((class3.method_8() == class122_1) && (class3.method_10().method_2() == class122_1.method_2())) { class2 = class3.method_10(); } if (class3.method_12() == null) { return(class2); } Class122 class4 = class3.method_12(); if ((class4.method_8() == class3) && (class4.method_10().method_2() == class122_1.method_2())) { return(class4.method_10()); } if ((class4.method_10() == class3) && (class4.method_8().method_2() == class122_1.method_2())) { class2 = class4.method_8(); } } return(class2); }
private Class122 method_6(byte byte_0, int int_2) { Class122 class2 = this.method_3(); class2.method_7(Enum29.const_3); class2.method_9(new Class122(Enum29.const_0, 0, 0L, class2.method_0() - 2)); class2.method_8().method_13(class2); class2.method_11(new Class122(Enum29.const_2, byte_0, (long)int_2, class2.method_0() - 1)); class2.method_10().method_13(class2); this.hashtable_0["NYT"] = class2.method_8(); this.hashtable_0[byte_0] = class2.method_10(); return(class2.method_10()); }
private bool method_0(BitStream stream0_0, out byte byte_0) { Class122 class2 = this.class121_0.method_9(); if (class2 == null) { throw new ApplicationException("The tree cannot be empty."); } while (class2.method_8() != null) { int num = stream0_0.method_4(); if (num < 0) { byte_0 = 0; return(false); } if (num != 0) { if (num != 1) { throw new ApplicationException("Invalid bit in the stream."); } class2 = class2.method_10(); } else { class2 = class2.method_8(); continue; } } if (class2.method_6() == Enum29.const_1) { byte_0 = 0; return(false); } int num2 = (class2.method_6() == Enum29.const_0) ? stream0_0.ReadByte() : class2.method_4(); if (num2 < 0) { byte_0 = 0; return(false); } this.class121_0.method_0((byte)num2); byte_0 = (byte)num2; return(true); }
private string method_11(Class122 class122_1, int int_2) { StringBuilder builder = new StringBuilder(); builder.Append(string.Concat(new object[] { this.method_12(int_2), "Type: ", class122_1.method_6(), Environment.NewLine })); builder.Append(string.Concat(new object[] { this.method_12(int_2), "Number: ", class122_1.method_0(), Environment.NewLine })); builder.Append(string.Concat(new object[] { this.method_12(int_2), "Count: ", class122_1.method_2(), Environment.NewLine })); builder.Append(string.Concat(new object[] { this.method_12(int_2), "Value: ", class122_1.method_4(), "(", char.IsControl((char)class122_1.method_4()) ? '-' : ((char)class122_1.method_4()), ")", Environment.NewLine })); if (class122_1.method_8() != null) { builder.Append(this.method_12(int_2 + 1) + "---- Left ----" + Environment.NewLine); builder.Append(this.method_11(class122_1.method_8(), int_2 + 1)); } if (class122_1.method_10() != null) { builder.Append(this.method_12(int_2 + 1) + "---- Right ----" + Environment.NewLine); builder.Append(this.method_11(class122_1.method_10(), int_2 + 1)); } return(builder.ToString()); }
private int method_13(Class122 class122_1) { if (class122_1 == null) { return(0); } int num = this.method_13(class122_1.method_8()); int num2 = this.method_13(class122_1.method_10()); return(1 + ((num > num2) ? num : num2)); }
private Class122 method_8(Class122 class122_1) { long num = class122_1.method_2(); Queue queue = new Queue(); queue.Enqueue(this.class122_0); while (queue.Count > 0) { Class122 class2 = (Class122)queue.Dequeue(); if (class2.method_2() == num) { return(class2); } if (class2.method_10() != null) { queue.Enqueue(class2.method_10()); queue.Enqueue(class2.method_8()); } } return(null); }