#include <stdint.h>
#include "littlefs/lfs.h"
Go to the source code of this file.
◆ LFS_compress_lfs_file_with_heatshrink()
| int8_t LFS_compress_lfs_file_with_heatshrink |
( |
lfs_t * | lfs, |
|
|
const char * | input_path, |
|
|
const char * | output_path, |
|
|
uint8_t | window_sz2, |
|
|
uint8_t | lookahead_sz2 ) |
Compress a file with Heatshrink, similar to the CLI.
- Parameters
-
| lfs | pointer to LittleFS instance |
| input_path | input file path |
| output_path | output file path |
| window_sz2 | log2 sliding window size (like CLI arg -w) |
| lookahead_sz2 | number of bits for backref length (like CLI arg -l) |
- Returns
- 0 success, negative LittleFS error, positive Heatshrink error.