public static MemoryStream Uncompress(MemoryStream instream) { MemoryStream outstream = new MemoryStream(); Lzma.Uncompress(instream, outstream); return(outstream); }
public static byte[] Uncompress(byte[] data) { MemoryStream instream = new MemoryStream(data); MemoryStream outstream = Lzma.Uncompress(instream); return(outstream.ToArray()); }