public static byte[] Compress(string input) { LZW lzw = new LZW(); IList <int> output = lzw.CompressString(input); return(lzw.OutputToBytes(output)); }
public static string Decompress(byte[] input) { LZW lzw = new LZW(); IList <int> output = lzw.BytesToOutput(input); string str = lzw.DecompressString(output); return(str); }