Ejemplo n.º 1
0
 public static byte[] Decompress(byte[] data, int align = 4)
 {
     using (var stream = new MemoryStream(data))
     {
         return(RleCompress.Decompress(stream, align));
     }
 }
Ejemplo n.º 2
0
        private static byte[] Decompress(Stream stream, int height, int width, int align = 4)
        {
            var realLength = height * width * align;

            return(RleCompress.Decompress(stream, align, realLength));
        }