summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Try to put some tests I made in ONE place. I also moved a test for ↵JPeterMugaas2019-04-221-47/+1
| | | | "install" in one place to try to isolate it.
* Initial commits from diff I submitted earlierJPeterMugaas2019-04-221-5/+42
|
* created LZ4_initStream()Yann Collet2019-04-052-3/+3
| | | | | | | | | | - promoted LZ4_resetStream_fast() to stable - moved LZ4_resetStream() into deprecate, but without triggering a compiler warning - update all sources to no longer rely on LZ4_resetStream() note : LZ4_initStream() proposal is slightly different : it's able to initialize any buffer, provided that it's large enough. To this end, it accepts a void*, and returns an LZ4_stream_t*.
* make `_fast*()` decoder generate a deprecation warningYann Collet2019-04-041-0/+1
| | | | updated modification
* 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.
* fixed minor cppcheck warnings in examplesYann Collet2018-09-183-17/+15
|
* 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
|
* merge lz4opt.h into lz4hc.cYann Collet2018-02-251-1/+1
| | | | | | | | | | | | | | Having a dedicated file for optimal parser made sense during its creation, it allowed Przemyslaw to work more freely on lz4opt, with less dependency on lz4hc, moreover, the optimal parser was more complex, with its own search functions. Since the optimal was rewritten last year, it's now a lot lighter. It makes more sense now to integrate it directly inside lz4hc.c, making it easier to edit (editors are a bit "lost" inside a `*.h` dependent on its #include position), it also reduces the number of files in the project, which fits pretty well with lz4 objectives. (adding lz4hc requires "just" lz4hc.h and lz4hc.c).
* 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
|
* examples/Makefile : changed dependency orderYann Collet2018-02-011-9/+9
| | | | static library *.a must come after source files *.c on linux
* 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
|
* ensure proper dependencies are built for /examplesYann Collet2018-02-011-19/+25
| | | | also : use liblz4.a static lib to share compilation time
* refactored frameCompress exampleYann Collet2018-01-311-68/+82
| | | | to better reflect LZ4F API usage.
* minor updates to examplesYann Collet2017-11-257-61/+62
| | | | see https://github.com/lz4/lz4/commit/810e2ca27b3561e0f6bfa7a88e0fde6faf807064#commitcomment-25810887
* minor improvements to examplesYann Collet2017-09-112-10/+18
| | | | | cosmetic : better display added optional variable MOREFLAGS
* bench : made decompression speed evaluation same time as compressionYann Collet2017-09-071-28/+17
| | | | minor : slightly modified an example do avoid disabling a gcc warning through #pragma
* 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
|
* fixed minor scan-build warningYann Collet2017-06-081-0/+1
|
* refactored simple_buffer.c example (#363)Yann Collet2017-06-083-43/+50
|
* minor warning fixv1.7.4Yann Collet2016-11-221-30/+19
|
* fix minor analyzer warningYann Collet2016-11-221-14/+9
|
* fixed minor analyzer warningYann Collet2016-11-211-11/+9
|
* added examples to make allYann Collet2016-11-212-6/+8
|
* Add frame decompression exampleNick Terrell2016-11-111-50/+199
|
* Add dictionary random access exampleNick Terrell2016-11-105-6/+359
|
* Clarified license (#115, #244)Yann Collet2016-11-022-0/+341
|
* use gnu c99 to get both c99 and POSIXGeorg Sauthoff2016-08-271-1/+1
| | | | | | when compiling with gcc fixes fileno() implicitly defined on Linx and compile error on Solaris 10
* Correctly reference self (github, not googlecode)Ben Wiederhake2016-07-071-1/+1
|
* Remove whitespace from ends of linesJulius Werner2016-02-132-2/+2
| | | | | | | I'm trying to import LZ4 code into a project with strict linting requirements. This will make that easier. Signed-off-by: Julius Werner <jwerner@chromium.org>
* Forgot to make clean before commiting. Removing binary.KyleJHarper2015-10-301-0/+0
|
* Several changes to address a few concerns from Yann. See Google Group LZ4c ↵KyleJHarper2015-10-304-32/+84
| | | | topic 'Reusing compression/decompression resources' for details.
* Added a note about why char* is used. Also removed a binary that wasn't ↵KyleJHarper2015-10-292-0/+7
| | | | supposed to be in there.
* Finished the two example files. Decided to avoid adding anything to lz4.c/h ↵KyleJHarper2015-10-293-56/+69
| | | | to expose LZ4_compress_generic().
* Took out the basics and placed them into basics.c. Added decompression and ↵KyleJHarper2015-10-263-76/+232
| | | | a wrapper for the generic call. I will likely break this file up into 2 examples before submission.
* Final tests and reporting are done. As expected there isn't much to be ↵KyleJHarper2015-10-231-75/+148
| | | | gained by jumping the chain. In most of my tests I did see a moderate performance gain when invoking LZ4_compress_generic() directly with normal text. This could very easily be an edge case. Either way it's interesting and worth sharing.
* Didn't add my file for some reason. Odd.KyleJHarper2015-10-221-0/+155
|
* Wrote the skeleton of the performance test. Need to finish tests for the ↵KyleJHarper2015-10-221-1/+4
| | | | rest of the call stack and then my own copy of generic().
* Added static analyzer test in VisualYann Collet2015-06-291-0/+0
|
* minor example clarificationYann Collet2015-06-282-5/+9
|
* Merge pull request #122 from keszybz/masterYann Collet2015-06-262-2/+174
|\ | | | | New example using frame api as DLL - redirect from #118
| * Use lz4 binary to check outputZbigniew Jędrzejewski-Szmek2015-06-181-0/+2
| |