Exemplo n.º 1
0
        public static byte[] Compress(byte[] data)
        {
            MemoryStream instream  = new MemoryStream(data);
            MemoryStream outstream = Lzma.Compress(instream);

            return(outstream.ToArray());
        }
Exemplo n.º 2
0
        public static MemoryStream Compress(MemoryStream instream)
        {
            MemoryStream outstream = new MemoryStream();

            Lzma.Compress(instream, outstream);
            return(outstream);
        }