1 quicklz
quicklz是单片机上一个常见的压缩算法,具体原理没有文档和hash表的相关基础我就不去深究了;
只需要将fileSrc.txt放在桌面,代码可以使用vscode的mingw直接编译;
2 quicklz源码
quicklz源码就一个c文件一个h文件,标准库要求就一个<string.h>;移植起来比较简单,直接包含头文件即可;
https://gitee.com/RT-Thread-Mirror/quicklz
fileSrc.txt
/***Put this file on Desktop as srcFile for quicklz compress;***/
// attention
//1 compress buff no more than 2048 size;
//2 because compressed transmit buff need to read qlz algrorithm parameter together for decompress,
// and parameter will count into decompressed buff;
// may lead to some mistake decompress;
4 quicklz 函数接口
/***main.c**************************************************************************************************/
//vscode直接使用mingw编译的时候没法包含多个c文件编译,需要配置vscod

本文介绍了quicklz压缩算法在单片机环境下的应用,包括源码结构、文件操作、编译方法以及存在的优化点,如VSCode多文件编译配置和解压后的多余空格处理。

1283

被折叠的 条评论
为什么被折叠?



