Exemple #1
0
 public static T FromBytes <T>(byte[] data)
 {
     return(FromJson <T>(GUtil.GetString(Compressor.Decompress(data))));
 }
Exemple #2
0
 public static byte[] ToBytes(object o)
 {
     return(Compressor.Compress(GUtil.GetBytes(ToJson(o))));
 }