private static object \uE01D(Stream \uE053, \uE015 \uE054, sbyte \uE055, Type \uE056) { Type type = typeof(object); Type type2 = typeof(object); if (\uE056.IsGenericType) { Type[] genericArguments = \uE056.GetGenericArguments(); if (genericArguments.Length >= 1) { type = genericArguments[0]; } if (genericArguments.Length >= 2) { type2 = genericArguments[1]; } } int num = CpInazumaMsgPack.\uE005(\uE053, \uE054, \uE055); IDictionary dictionary = Activator.CreateInstance(typeof(Dictionary <, >).MakeGenericType(new Type[] { type, type2 })) as IDictionary; for (int i = 0; i < num; i++) { object key = CpInazumaMsgPack.Unpack(\uE053, type); object value = CpInazumaMsgPack.Unpack(\uE053, type2); dictionary.Add(key, value); } return(dictionary); }
public static string Dump(Stream stream) { if (stream != null && stream.CanRead) { if (stream.CanSeek) { StringBuilder stringBuilder = new StringBuilder(CpInazumaMsgPack.\uE003); int num = 0; stringBuilder.Append(global::\uE019.\uE000(11514)); long position = stream.Position; while (stream.Position < stream.Length) { long position2 = stream.Position; sbyte uE = 0; \uE015 uE2 = CpInazumaMsgPack.\uE00A(stream, out uE); string arg = CpInazumaMsgPack.\uE023(stream, uE2, uE); num++; stringBuilder.AppendFormat(global::\uE019.\uE000(11475), global::\uE019.\uE000(11297), uE2); stringBuilder.AppendFormat(global::\uE019.\uE000(11475), global::\uE019.\uE000(11320), arg); stringBuilder.AppendFormat(global::\uE019.\uE000(11312), global::\uE019.\uE000(11294), position2); stringBuilder.AppendFormat(global::\uE019.\uE000(11312), global::\uE019.\uE000(11285), stream.Position - position2); stringBuilder.Append(global::\uE019.\uE000(11372)); } stringBuilder.AppendFormat(global::\uE019.\uE000(11333), global::\uE019.\uE000(11347), stream.Length); stringBuilder.AppendFormat(global::\uE019.\uE000(12197), global::\uE019.\uE000(12214), num); stringBuilder.AppendFormat(global::\uE019.\uE000(12169), global::\uE019.\uE000(12183), (double)stream.Length / (double)num); stringBuilder.Append(global::\uE019.\uE000(12259)); stream.Seek(position, SeekOrigin.Begin); return(stringBuilder.ToString()); } } return(string.Empty); }
private static int \uE005(Stream \uE027, \uE015 \uE028, sbyte \uE029) { if (\uE028 == global::\uE015.\uE004) { return((int)\uE029); } if (\uE028 == global::\uE015.\uE002) { return((int)\uE029); } if (\uE028 == global::\uE015.\uE003) { return((int)\uE029); } if (!CpInazumaMsgPack.\uE00F(\uE028)) { if (!CpInazumaMsgPack.\uE010(\uE028)) { if (!CpInazumaMsgPack.\uE011(\uE028)) { if (!CpInazumaMsgPack.\uE012(\uE028)) { return(0); } } } } return((int)CpInazumaMsgPack.\uE001(\uE027, CpInazumaMsgPack.\uE004(\uE028, \uE029))); }
private static byte[] \uE01F(Stream \uE05A, \uE015 \uE05B, sbyte \uE05C) { int num = CpInazumaMsgPack.\uE005(\uE05A, \uE05B, \uE05C); byte[] array = new byte[num]; \uE05A.Read(array, 0, num); return(array); }
private static string \uE01E(Stream \uE057, \uE015 \uE058, sbyte \uE059) { int num = CpInazumaMsgPack.\uE005(\uE057, \uE058, \uE059); byte[] array = new byte[num]; \uE057.Read(array, 0, num); return(CpInazumaMsgPack.\uE000.GetString(array)); }
private static bool \uE012(\uE015 \uE039) { if (\uE039 != global::\uE015.\uE00E) { if (\uE039 != global::\uE015.\uE00F) { return(\uE039 == global::\uE015.\uE010); } } return(true); }
private static bool \uE011(\uE015 \uE038) { if (\uE038 != global::\uE015.\uE004 && \uE038 != global::\uE015.\uE01E) { if (\uE038 != global::\uE015.\uE01F) { return(\uE038 == global::\uE015.\uE020); } } return(true); }
private static bool \uE010(\uE015 \uE037) { if (\uE037 != global::\uE015.\uE002) { if (\uE037 != global::\uE015.\uE023) { return(\uE037 == global::\uE015.\uE024); } } return(true); }
private static bool \uE00F(\uE015 \uE036) { if (\uE036 != global::\uE015.\uE003) { if (\uE036 != global::\uE015.\uE021) { return(\uE036 == global::\uE015.\uE022); } } return(true); }
private static object \uE020(Stream \uE05D, ref \uE017 \uE05E) { sbyte b = 0; \uE015 uE = CpInazumaMsgPack.\uE00A(\uE05D, out b); object obj = Activator.CreateInstance(\uE05E.\uE000); if (CpInazumaMsgPack.\uE010(uE)) { int num = CpInazumaMsgPack.\uE005(\uE05D, uE, b); for (int i = 0; i < num; i++) { CpInazumaMsgPack.\uE001 uE2 = new CpInazumaMsgPack.\uE001(); uE = CpInazumaMsgPack.\uE00A(\uE05D, out b); uE2.\uE000 = CpInazumaMsgPack.\uE01E(\uE05D, uE, b); \uE016 uE3 = \uE05E.\uE001.Find(new Predicate <\uE016>(uE2.\uE000)); if (uE3 == null) { CpInazumaMsgPack.Unpack(\uE05D, typeof(object)); } else { TypeCode typeCode = Type.GetTypeCode(uE3.\uE002.FieldType); object value = CpInazumaMsgPack.\uE014(CpInazumaMsgPack.Unpack(\uE05D, uE3.\uE002.FieldType), typeCode); uE3.\uE002.SetValue(obj, value); } } return(obj); } if (CpInazumaMsgPack.\uE00F(uE)) { \uE05D.Seek((long)CpInazumaMsgPack.\uE004(uE, b), SeekOrigin.Current); return(CpInazumaMsgPack.\uE020(\uE05D, ref \uE05E)); } \uE05D.Seek(-1L, SeekOrigin.Current); if (uE == global::\uE015.\uE00A) { return(null); } for (int j = 0; j < \uE05E.\uE001.Count; j++) { FieldInfo uE4 = \uE05E.\uE001[j].\uE002; object obj2 = CpInazumaMsgPack.Unpack(\uE05D, uE4.FieldType); if (obj2 != null) { uE4.SetValue(obj, Convert.ChangeType(obj2, uE4.FieldType)); } } return(obj); }
public static object Unpack(Stream stream, Type type) { if (stream != null && stream.CanRead) { if (stream.CanSeek) { \uE017 uE = default(\uE017); if (CpInazumaMsgPack.\uE022(type, ref uE)) { return(CpInazumaMsgPack.\uE020(stream, ref uE)); } sbyte b = 0; \uE015 uE2 = CpInazumaMsgPack.\uE00A(stream, out b); if (uE2 == global::\uE015.\uE00B) { stream.Seek(-1L, SeekOrigin.Current); return(null); } if (uE2 == global::\uE015.\uE00A) { return(null); } if (CpInazumaMsgPack.\uE00E(uE2)) { return(CpInazumaMsgPack.\uE01B(stream, uE2, b)); } if (CpInazumaMsgPack.\uE00F(uE2)) { return(CpInazumaMsgPack.\uE01C(stream, uE2, b, type)); } if (CpInazumaMsgPack.\uE010(uE2)) { return(CpInazumaMsgPack.\uE01D(stream, uE2, b, type)); } if (CpInazumaMsgPack.\uE011(uE2)) { return(CpInazumaMsgPack.\uE01E(stream, uE2, b)); } if (CpInazumaMsgPack.\uE012(uE2)) { return(CpInazumaMsgPack.\uE01F(stream, uE2, b)); } stream.Seek(-1L, SeekOrigin.Current); return(null); } } throw new IOException(global::\uE019.\uE000(11502)); }
private static bool \uE00E(\uE015 \uE035) { if (\uE035 != global::\uE015.\uE00D && \uE035 != global::\uE015.\uE00C && \uE035 != global::\uE015.\uE000 && \uE035 != global::\uE015.\uE001 && \uE035 != global::\uE015.\uE016 && \uE035 != global::\uE015.\uE017 && \uE035 != global::\uE015.\uE018 && \uE035 != global::\uE015.\uE019 && \uE035 != global::\uE015.\uE01A && \uE035 != global::\uE015.\uE01B) { if (\uE035 != global::\uE015.\uE01C) { if (\uE035 != global::\uE015.\uE01D) { if (\uE035 != global::\uE015.\uE014) { return(\uE035 == global::\uE015.\uE015); } } } } return(true); }
private static object \uE01C(Stream \uE04F, \uE015 \uE050, sbyte \uE051, Type \uE052) { int num = CpInazumaMsgPack.\uE005(\uE04F, \uE050, \uE051); Type type = null; IList list = CpInazumaMsgPack.\uE013(\uE052, num, out type); for (int i = 0; i < num; i++) { object value = CpInazumaMsgPack.Unpack(\uE04F, type); try { list[i] = Convert.ChangeType(value, type); } catch (InvalidCastException) { list[i] = value; } } return(list); }
private static string \uE023(Stream \uE062, \uE015 \uE063, sbyte \uE064) { if (\uE063 == global::\uE015.\uE00B) { return(global::\uE019.\uE000(12244)); } if (\uE063 == global::\uE015.\uE00A) { return(global::\uE019.\uE000(12078)); } if (CpInazumaMsgPack.\uE00E(\uE063)) { return(CpInazumaMsgPack.\uE01B(\uE062, \uE063, \uE064).ToString()); } if (CpInazumaMsgPack.\uE00F(\uE063)) { int num = CpInazumaMsgPack.\uE005(\uE062, \uE063, \uE064); return(string.Format(global::\uE019.\uE000(12075), num)); } if (CpInazumaMsgPack.\uE010(\uE063)) { int num2 = CpInazumaMsgPack.\uE005(\uE062, \uE063, \uE064); return(string.Format(global::\uE019.\uE000(12085), num2)); } if (CpInazumaMsgPack.\uE011(\uE063)) { string text = CpInazumaMsgPack.\uE01E(\uE062, \uE063, \uE064); if (CpInazumaMsgPack.\uE00A) { text = text.Replace(global::\uE019.\uE000(12036), "").Replace(global::\uE019.\uE000(12038), ""); } return(string.Format(global::\uE019.\uE000(12032), text.Substring(0, Math.Min(text.Length, CpInazumaMsgPack.\uE009)))); } if (CpInazumaMsgPack.\uE012(\uE063)) { return(string.Format(global::\uE019.\uE000(12062), CpInazumaMsgPack.\uE01F(\uE062, \uE063, \uE064).Length)); } return(string.Empty); }
private static void \uE00B(object \uE030, \uE015 \uE031, Stream \uE032) { if (\uE031 <= global::\uE015.\uE002) { if (\uE031 == global::\uE015.\uE000) { ulong num = Convert.ToUInt64(\uE030); \uE032.WriteByte(Convert.ToByte(num & 255UL)); return; } if (\uE031 != global::\uE015.\uE002) { return; } } else if (\uE031 != global::\uE015.\uE003) { switch (\uE031) { case global::\uE015.\uE004: \uE032.WriteByte((byte)(\uE031 | (\uE015)(Convert.ToByte(\uE030) & 31))); return; case (\uE015)161: case (\uE015)162: case (\uE015)163: case (\uE015)164: case (\uE015)165: case (\uE015)166: case (\uE015)167: case (\uE015)168: case (\uE015)169: case (\uE015)170: case (\uE015)171: case (\uE015)172: case (\uE015)173: case (\uE015)174: case (\uE015)175: case (\uE015)176: case (\uE015)177: case (\uE015)178: case (\uE015)179: case (\uE015)180: case (\uE015)181: case (\uE015)182: case (\uE015)183: case (\uE015)184: case (\uE015)185: case (\uE015)186: case (\uE015)187: case (\uE015)188: case (\uE015)189: case (\uE015)190: case (\uE015)191: case global::\uE015.\uE00B: break; case global::\uE015.\uE00A: case global::\uE015.\uE00C: case global::\uE015.\uE00D: \uE032.WriteByte((byte)\uE031); return; case global::\uE015.\uE00E: case global::\uE015.\uE011: case global::\uE015.\uE016: case global::\uE015.\uE005: case global::\uE015.\uE006: case global::\uE015.\uE007: case global::\uE015.\uE008: case global::\uE015.\uE009: case global::\uE015.\uE01E: \uE032.WriteByte((byte)\uE031); \uE032.WriteByte(Convert.ToByte(\uE030)); return; case global::\uE015.\uE00F: case global::\uE015.\uE012: case global::\uE015.\uE017: case global::\uE015.\uE01F: case global::\uE015.\uE021: case global::\uE015.\uE023: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToUInt16(\uE030))), 0, 2); return; case global::\uE015.\uE010: case global::\uE015.\uE013: case global::\uE015.\uE018: case global::\uE015.\uE020: case global::\uE015.\uE022: case global::\uE015.\uE024: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToUInt32(\uE030))), 0, 4); return; case global::\uE015.\uE014: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToSingle(\uE030))), 0, 4); return; case global::\uE015.\uE015: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToDouble(\uE030))), 0, 8); return; case global::\uE015.\uE019: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToUInt64(\uE030))), 0, 8); return; case global::\uE015.\uE01A: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes((short)Convert.ToSByte(\uE030))), 0, 1); return; case global::\uE015.\uE01B: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToInt16(\uE030))), 0, 2); return; case global::\uE015.\uE01C: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToInt32(\uE030))), 0, 4); return; case global::\uE015.\uE01D: \uE032.WriteByte((byte)\uE031); \uE032.Write(CpInazumaMsgPack.\uE000(BitConverter.GetBytes(Convert.ToInt64(\uE030))), 0, 8); break; case global::\uE015.\uE001: { long num2 = Convert.ToInt64(\uE030); \uE032.WriteByte(Convert.ToByte(num2 & 255L)); return; } default: return; } return; } \uE032.WriteByte((byte)(\uE031 | (\uE015)(Convert.ToByte(\uE030) & 15))); }
private static int \uE004(\uE015 \uE025, sbyte \uE026) { switch (\uE025) { case global::\uE015.\uE00E: return(1); case global::\uE015.\uE00F: return(2); case global::\uE015.\uE010: return(4); case global::\uE015.\uE011: return(1); case global::\uE015.\uE012: return(2); case global::\uE015.\uE013: return(4); case global::\uE015.\uE014: return(4); case global::\uE015.\uE015: return(8); case global::\uE015.\uE016: return(1); case global::\uE015.\uE017: return(2); case global::\uE015.\uE018: return(4); case global::\uE015.\uE019: return(8); case global::\uE015.\uE01A: return(1); case global::\uE015.\uE01B: return(2); case global::\uE015.\uE01C: return(4); case global::\uE015.\uE01D: return(8); case global::\uE015.\uE01E: return(1); case global::\uE015.\uE01F: return(2); case global::\uE015.\uE020: return(4); case global::\uE015.\uE021: return(2); case global::\uE015.\uE022: return(4); case global::\uE015.\uE023: return(2); case global::\uE015.\uE024: return(4); } return(0); }
private static object \uE01B(Stream \uE04C, \uE015 \uE04D, sbyte \uE04E) { if (\uE04D != global::\uE015.\uE000) { switch (\uE04D) { case global::\uE015.\uE00C: return(false); case global::\uE015.\uE00D: return(true); case global::\uE015.\uE00E: case global::\uE015.\uE00F: case global::\uE015.\uE010: case global::\uE015.\uE011: case global::\uE015.\uE012: case global::\uE015.\uE013: break; case global::\uE015.\uE014: return(CpInazumaMsgPack.\uE002(\uE04C)); case global::\uE015.\uE015: return(CpInazumaMsgPack.\uE003(\uE04C)); case global::\uE015.\uE016: return((byte)\uE04C.ReadByte()); case global::\uE015.\uE017: return((ushort)CpInazumaMsgPack.\uE001(\uE04C, 2)); case global::\uE015.\uE018: return((uint)CpInazumaMsgPack.\uE001(\uE04C, 4)); case global::\uE015.\uE019: return((ulong)CpInazumaMsgPack.\uE001(\uE04C, 8)); case global::\uE015.\uE01A: return((sbyte)\uE04C.ReadByte()); case global::\uE015.\uE01B: return((short)CpInazumaMsgPack.\uE001(\uE04C, 2)); case global::\uE015.\uE01C: return((int)CpInazumaMsgPack.\uE001(\uE04C, 4)); case global::\uE015.\uE01D: return(CpInazumaMsgPack.\uE001(\uE04C, 8)); default: if (\uE04D == global::\uE015.\uE001) { return(\uE04E); } break; } return(null); } return((byte)\uE04E); }
internal static int[] \uE00D(int[] \uE000, int \uE001, int \uE002) { \uE015 uE = new \uE015(); int num = 0; if (num == 0) { goto IL_1A6; } IL_12: if (\uE000[\uE001 + num] == 0) { int num2 = 0; for (;;) { num2++; for (;;) { int num3 = \uE011.\uE006(90); for (;;) { switch (num3) { case 0: if (num2 < 138) { num3 = 2; continue; } goto IL_85; case 1: if (num + num2 < \uE002) { num3 = \uE011.\uE006(92); continue; } goto IL_85; case 2: if (\uE000[\uE001 + num + num2] != 0) { num3 = 3; continue; } goto IL_80; case 3: goto IL_7D; } break; } } IL_83: bool flag; if (!flag) { break; } continue; IL_7D: flag = false; goto IL_83; IL_80: flag = true; goto IL_83; } IL_85: if (num2 < 3) { if (num2 >= 1) { uE.\uE000(0); } if (num2 >= 2) { uE.\uE000(0); } } else if (num2 < 11) { uE.\uE000(17); uE.\uE000(num2 - 3); } else { uE.\uE000(18); uE.\uE000(num2 - 11); } num += num2; } else { int num4 = \uE000[\uE001 + num++]; int num6; for (;;) { int num5 = \uE011.\uE006(90); for (;;) { switch (num5) { case 0: num6 = 0; num5 = 2; continue; case 1: uE.\uE000(num4); num5 = \uE011.\uE006(92); continue; case 2: if (num6 != 0) { num5 = 3; continue; } goto IL_132; case 3: goto IL_12C; } break; } } IL_12C: num6++; IL_132: if (num + num6 < \uE002 && num6 < 6 && \uE000[\uE001 + num + num6] == num4) { goto IL_12C; } if (num6 >= 3) { uE.\uE000(16); for (;;) { int num7 = \uE011.\uE006(90); for (;;) { switch (num7) { case 0: num += num6; num7 = 2; continue; case 1: uE.\uE000(num6 - 3); num7 = 0; continue; case 2: goto IL_19D; } break; } } IL_19D: ; } } IL_1A6: if (num >= \uE002) { return(uE.\uE001()); } goto IL_12; }