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