예제 #1
0
 public static byte[] CompressString(string data)
 {
     byte[] tmp = Encoding.UTF8.GetBytes(data);
     return(GZipUtil.Compress(tmp, 0, (int)tmp.Length));
 }
예제 #2
0
 public static byte[] Compress(byte[] data)
 {
     return(GZipUtil.Compress(data, 0, (int)data.Length));
 }