Example #1
0
 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);
 }