private object method_9(Stream A_0, int A_1) { byte[] buffer = new byte[4]; PropertyType type = (PropertyType)Class1115.smethod_1(A_0, buffer); return(this.method_5(type, A_0, A_1 - 4)); }
public void Parse(Stream stream) { byte[] buffer = new byte[4]; int count = Class1115.smethod_1(stream, buffer); this.Format = Class1115.smethod_1(stream, buffer); this.Data = new byte[count]; stream.Read(this.Data, 0, count); }
private object method_6(Stream A_0, byte[] A_1) { int count = Class1115.smethod_1(A_0, A_1); byte[] buffer = new byte[count]; if (A_0.Read(buffer, 0, count) != count) { throw new Exception(); } return(buffer); }
private IList method_3(Stream A_0, int A_1) { byte[] buffer = new byte[4]; int num = Class1115.smethod_1(A_0, buffer); PropertyType type = this.propertyType_0 & ~PropertyType.Vector; IList list = this.method_4(type, num); for (int i = 0; i < num; i++) { list[i] = this.method_5(type, A_0, A_1 - 4); } return(list); }
private Dictionary <int, string> method_10(Stream A_0) { byte[] buffer = new byte[4]; int num = Class1115.smethod_1(A_0, buffer); Dictionary <int, string> dictionary = new Dictionary <int, string>(); for (int i = 0; i < num; i++) { int key = Class1115.smethod_1(A_0, buffer); string str = Class1115.smethod_6(A_0, -1); dictionary.Add(key, str); } return(dictionary); }
private object method_5(PropertyType A_0, Stream A_1, int A_2) { byte[] buffer = new byte[8]; object obj2 = null; switch (A_0) { case PropertyType.Empty: case PropertyType.Null: return(null); case PropertyType.Int16: obj2 = Class1115.smethod_0(A_1, buffer); A_1.Position += 2L; return(obj2); case PropertyType.Int32: case PropertyType.Int: return(Class1115.smethod_1(A_1, buffer)); case PropertyType.Double: return(Class1115.smethod_2(A_1, buffer)); case PropertyType.Bool: return(Class1115.smethod_1(A_1, buffer) != 0); case PropertyType.Object: return(this.method_9(A_1, A_2 - 4)); case PropertyType.UInt32: return((uint)Class1115.smethod_0(A_1, buffer)); case PropertyType.AsciiString: return(Class1115.smethod_6(A_1, A_2 - 4)); case PropertyType.String: return(Class1115.smethod_7(A_1, A_2 - 4)); case PropertyType.DateTime: return(this.method_8(A_1, buffer)); case PropertyType.Blob: return(this.method_6(A_1, buffer)); case PropertyType.ClipboardData: return(this.method_7(A_1, buffer)); } throw new NotImplementedException(); }
public void method_2(Stream A_0, int A_1) { byte[] buffer = new byte[4]; this.propertyType_0 = (PropertyType)Class1115.smethod_1(A_0, buffer); if ((this.propertyType_0 & PropertyType.Vector) != PropertyType.Empty) { this.object_0 = this.method_3(A_0, A_1); } else { this.object_0 = this.method_5(this.propertyType_0, A_0, A_1); } if ((this.propertyType_0 & PropertyType.AsciiString) == PropertyType.AsciiString) { this.propertyType_0 &= ~PropertyType.AsciiString; this.propertyType_0 |= PropertyType.String; } }
public void method_8(Stream A_0) { byte[] buffer = new byte[4]; A_0.Position = this.int_1; this.int_2 = Class1115.smethod_1(A_0, buffer); int num = Class1115.smethod_1(A_0, buffer); List <int> list = new List <int>(); for (int i = 0; i < num; i++) { int num5 = Class1115.smethod_1(A_0, buffer); int item = Class1115.smethod_1(A_0, buffer); this.list_0.Add(new Class937(num5)); list.Add(item); } list.Add((int)A_0.Length); Dictionary <int, string> dictionary = null; for (int j = 0; j < num; j++) { Class937 class2 = this.list_0[j]; int num7 = list[j]; int num8 = list[j + 1]; A_0.Position = this.int_1 + list[j]; int num3 = num8 - num7; if (class2.Interface37.imethod_3() < 2) { this.method_9(class2, A_0, num3, ref dictionary); this.list_0.RemoveAt(j); list.RemoveAt(j); num--; j--; } else { string str; class2.method_2(A_0, num3); if ((dictionary != null) && dictionary.TryGetValue(class2.Interface37.imethod_3(), out str)) { class2.method_18(str); } } } }
private void method_2(Stream A_0) { byte[] buffer = new byte[0x10]; A_0.Read(buffer, 0, 4); if (BitConverter.ToInt32(buffer, 0) != 0xfffe) { throw new IOException(); } A_0.Read(buffer, 0, 2); A_0.Read(buffer, 0, 2); A_0.Read(buffer, 0, 0x10); A_0.Read(buffer, 0, 4); int num4 = BitConverter.ToInt32(buffer, 0); for (int i = 0; i < num4; i++) { A_0.Read(buffer, 0, 0x10); Guid guid = new Guid(buffer); int num2 = Class1115.smethod_1(A_0, buffer); this.list_0.Add(new Class663(guid, num2)); } }