| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
frame-api: add function to insert uncomressed data
|
| |
| |
| |
| |
| |
| | |
This commit fixes the review findings
Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
| |
Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
|
|
|
|
|
|
| |
operate lz4 compressed files as a general files
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix -Wshorten-64-to-32 warning
The following CI test (macOS) reports "-Wshorten-64-to-32" warning
make V=1 clean test MOREFLAGS='-Werror -Wconversion -Wno-sign-conversion'
```
blockStreaming_lineByLine.c:68:54: error: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
lz4Stream, inpPtr, cmpBuf, inpBytes, cmpBufBytes, 1);
^~~~~~~~~~~
```
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
fixed assert() when divisor == 0
|
|
|
|
| |
but make it compressible
|
| |
|
| |
|
| |
|
|
|
|
| |
and fixed minor formatting warnings
|
|
|
|
| |
there were a few tiny inaccuracies, especially in error conditions.
|
|
|
|
| |
"install" in one place to try to isolate it.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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*.
|
|
|
|
| |
updated modification
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
as detected in #485 by @JoachimSchneider.
Refactored the c_standards tests
so that these issues get automatically detected in CI tests.
|
|
|
|
| |
check for potential input data not consumed.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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").
|
|/
|
|
|
| |
to simplify initialization of lz4frame.h structures.
Partially in response to #546.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
using same logic as prior modifications for compression part.
|
| |
|
|
|
|
| |
static library *.a must come after source files *.c on linux
|
|
|
|
|
|
| |
compression function returns a struct.
Also : nested structure ressources->computation
to make it easier to manage multiple exit points.
|
| |
|
|
|
|
| |
also : use liblz4.a static lib to share compilation time
|
|
|
|
| |
to better reflect LZ4F API usage.
|
|
|
|
| |
see https://github.com/lz4/lz4/commit/810e2ca27b3561e0f6bfa7a88e0fde6faf807064#commitcomment-25810887
|
|
|
|
|
| |
cosmetic : better display
added optional variable MOREFLAGS
|
|
|
|
| |
minor : slightly modified an example do avoid disabling a gcc warning through #pragma
|
| |
|
| |
|
| |
|
| |
|