Exemple #1
0
 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)));
 }
Exemple #2
0
 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));
 }
Exemple #3
0
 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);
 }