summaryrefslogtreecommitdiffstats
path: root/examples/simple_buffer.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: fix some typoQi Wang2022-06-061-1/+1
| | | | Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
* examples: simple_buffer: We must explicit convert pointer after malloc in c++kmou4242021-09-041-2/+2
| | | | | | | | | | | | | Aim: To adapt C++ Compilation errors: simple_buffer.c:47:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *' char* compressed_data = malloc((size_t)max_dst_size); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ simple_buffer.c:76:15: error: cannot initialize a variable of type 'char *const' with an rvalue of type 'void *' char* const regen_buffer = malloc(src_size); ^ ~~~~~~~~~~~~~~~~ 2 errors generated.
* keep the "lorem ipsum" topic of the example stringYann Collet2019-07-121-1/+1
| | | | but make it compressible
* print the compression ratioHamid Zare2019-07-111-1/+2
|
* changed the input text to something more compression friendlyHamid Zare2019-07-111-1/+1
|
* update simple_buffer exampleYann Collet2019-06-061-20/+25
| | | | there were a few tiny inaccuracies, especially in error conditions.
* fixed minor cppcheck warnings in examplesYann Collet2018-09-181-3/+2
|
* fixed minor scan-build warningYann Collet2017-06-081-0/+1
|
* refactored simple_buffer.c example (#363)Yann Collet2017-06-081-39/+42
|
* Several changes to address a few concerns from Yann. See Google Group LZ4c ↵KyleJHarper2015-10-301-0/+90
topic 'Reusing compression/decompression resources' for details.