Example #1
0
        public static MemoryStream Uncompress(MemoryStream instream)
        {
            MemoryStream outstream = new MemoryStream();

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

            return(outstream.ToArray());
        }