예제 #1
0
파일: RL.cs 프로젝트: parhelia512/FreeMote
 public static byte[] Decompress(byte[] data, int align = 4)
 {
     using (var stream = new MemoryStream(data))
     {
         return(RleCompress.Decompress(stream, align));
     }
 }
예제 #2
0
파일: RL.cs 프로젝트: parhelia512/FreeMote
        private static byte[] Decompress(Stream stream, int height, int width, int align = 4)
        {
            var realLength = height * width * align;

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