Exemple #1
0
 public T Deserialize <T>(byte[] bytes, long offset = 0)
 {
     try
     {
         _stream.BeginRead(bytes, offset);
         return(GetFormatter <T>().Read(_stream, this));
     }
     catch (MsgPackException e)
     {
         throw new MsgPackSerializationException(e.Message, _trace);
     }
     finally
     {
         _trace = string.Empty;
         _stream.Reset();
     }
 }