summaryrefslogtreecommitdiffstats
path: root/examples/frameCompress.c
Commit message (Collapse)AuthorAgeFilesLines
* review: Fix review findingsAlexander Mohr2022-06-101-0/+1
| | | | | | This commit fixes the review findings Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
* frame-api: add method to insert uncomressed dataAlexander Mohr2022-06-091-23/+110
| | | | | | | | new method `uncompressed_update` allows to insert blocks without compression into the lz4 stream. The usage is documented in the frameCompress example Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
* Fix typos found by codespellDimitri Papadopoulos2021-11-251-1/+1
|
* fix spellinga13460542021-08-211-2/+2
|
* fixed #778Yann Collet2019-08-211-2/+2
| | | | fixed assert() when divisor == 0
* tried to clean another bunch of cppcheck warningsYann Collet2018-09-191-6/+7
| | | | | | | | | | | | so "funny" thing with cppcheck is that no 2 versions give the same list of warnings. On Mac, I'm using v1.81, which had all warnings fixed. On Travis CI, it's v1.61, and it complains about a dozen more/different things. On Linux, it's v1.72, and it finds a completely different list of a half dozen warnings. Some of these seems to be bugs/limitations in cppcheck itself. The TravisCI version v1.61 seems unable to understand %zu correctly, and seems to assume it means %u.
* avoid final trailing comma for enum listsYann Collet2018-09-131-4/+4
| | | | | | | as detected in #485 by @JoachimSchneider. Refactored the c_standards tests so that these issues get automatically detected in CI tests.
* frameCompress : added an error detection caseYann Collet2018-09-051-2/+13
| | | | check for potential input data not consumed.
* Merge branch 'dev' into lz4f_initYann Collet2018-09-051-1/+1
|\
| * Fix bug in frame decompress exampleCedric De Brito2018-07-021-1/+1
| | | | | | | | | | | | | | | | The decompression was failing as the srcEnd pointer in decompress_file_internal was wrongly computed beyond the end of the memory block. We need to account for the fact that the header ("info") was already read in the calling function ("alreadyConsumed").
* | Introduced constants LZ4F_INIT_*Yann Collet2018-09-051-10/+11
|/ | | | | to simplify initialization of lz4frame.h structures. Partially in response to #546.
* fixed a number of minor cast warningsYann Collet2018-04-271-1/+2
|
* modified decompression part of frameCompress.cYann Collet2018-02-011-99/+138
| | | | using same logic as prior modifications for compression part.
* refactored ressource allocation to avoid gotoYann Collet2018-02-011-23/+12
|
* refactored frameCompress.c example codeYann Collet2018-02-011-51/+81
| | | | | | compression function returns a struct. Also : nested structure ressources->computation to make it easier to manage multiple exit points.
* fixed read size, as noticed by @terrellnYann Collet2018-02-011-1/+1
|
* refactored frameCompress exampleYann Collet2018-01-311-68/+82
| | | | to better reflect LZ4F API usage.
* minor updates to examplesYann Collet2017-11-251-52/+53
| | | | see https://github.com/lz4/lz4/commit/810e2ca27b3561e0f6bfa7a88e0fde6faf807064#commitcomment-25810887
* Fix: Add return statement to main functionMarkus Hennecke2017-08-241-0/+2
|
* restored block checksum capability at lz4frame API levelYann Collet2017-08-121-3/+3
|
* fixed frameCompress exampleYann Collet2017-08-091-268/+269
|
* fix minor analyzer warningYann Collet2016-11-221-14/+9
|
* fixed minor analyzer warningYann Collet2016-11-211-11/+9
|
* Add frame decompression exampleNick Terrell2016-11-111-50/+199
|
* minor example clarificationYann Collet2015-06-281-4/+8
|
* Add example which uses the frame api through the libraryZbigniew Jędrzejewski-Szmek2015-06-181-0/+165