summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
Commit message (Collapse)AuthorAgeFilesLines
* added code documentation on heap modeYann Collet2022-09-271-11/+31
| | | | and also on decompress_continue variants.
* Add note about RC_INVOKEDTakayuki Matsuoka2022-08-121-0/+13
|
* Suppress warning from rc.exeTakayuki Matsuoka2022-08-121-0/+4
| | | | | | | | | | Since rc.exe (the resource compiler) is legacy compiler, it truncates preprocessor symbol name length to 32 chars. And it reports the following warning lz4\build\VS2022\..\..\lib\lz4.h(314): warning RC4011: identifier truncated to 'LZ4_STATIC_LINKING_ONLY_DISABLE' lz4\build\VS2022\..\..\lib\lz4.h(401): warning RC4011: identifier truncated to 'LZ4_STATIC_LINKING_ONLY_DISABLE' This patch detects rc.exe and just skips long symbol.
* Merge pull request #1129 from t-mat/disable-memory-alloc-add-docYann Collet2022-08-101-0/+4
|\ | | | | Add document for LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION
| * Fix: Disable prototypes in header fileTakayuki Matsuoka2022-08-061-0/+4
| |
* | Add short document of LZ4_FREESTANDING to lz4.hTakayuki Matsuoka2022-08-101-4/+11
| |
* | Add LZ4_FREESTANDINGTakayuki Matsuoka2022-08-071-0/+23
|/
* implement decoder-only benchmark modeYann Collet2022-07-291-1/+1
| | | | requires an LZ4 Frame as input
* minor refactorYann Collet2022-07-291-4/+17
| | | | to prepare bench.c for multiple decoding functions.
* Re-organize state's internal to be more compactYann Collet2022-07-131-4/+5
| | | | | produces less padding, notably on OS400 following #1070 by @jonrumsey
* minor : specify min versions for library version identifiersYann Collet2022-07-121-21/+21
|
* clarify static sizes of states for static allocationYann Collet2022-07-121-45/+10
|
* Change definitions of LZ4_STREAMSIZE, LZ4_STREAMDECODESIZE and ↵jonrumsey2022-07-111-2/+28
| | | | | | LZ4_STREAMHCSIZE to factor in OS400 pointer length and structure alignment rules Update the length values on platforms where pointers are 16-bytes, factor in implicit compiler padding to ensure proper alignment of members and overall structure lengths
* API: add `LZ4_decompress_safe_partial_usingDict` APIQi Wang2022-06-071-0/+1
| | | | | | feature request: #1051 Signed-off-by: Qi Wang <wangqi@linux.alibaba.com>
* update library version to v1.9.4Yann Collet2022-04-171-1/+1
| | | | to reduce confusion in traces between dev branch and latest v1.9.3 release.
* added target test-compile-with-lz4-memory-usageYann Collet2022-01-311-4/+5
| | | | and run it in GA CI
* Introduce MIN and MAX bounds to LZ4_MEMORY_USAGEYann Collet2022-01-311-3/+13
| | | | | | | ensure that `frametest` works fine with these values, notably with low LZ4_MEMORY_USAGE (dict test notably) following suggestions from @t-mat at #1016
* Define LZ4_STREAMSIZE in terms of LZ4_MEMORY_USAGEEddy Jansson2021-07-311-1/+1
| | | | | | This is required to correctly size a static member to hold the hash table, whose size is derived from LZ4_MEMORY_USAGE.
* fix some typos (work by Andrea Gelmini)Thomas Waldmann2021-01-071-1/+1
|
* fix minor header dateYann Collet2020-12-011-1/+1
|
* update obsolete section documentationYann Collet2020-11-081-12/+11
| | | | | and update manuals. fix #712
* static state sizeYann Collet2020-11-071-2/+2
| | | | for better inter-version compatibility
* re-enable alignment test on all targetsYann Collet2020-11-071-1/+1
|
* unified internal state declarationYann Collet2020-11-071-34/+26
| | | | align on `void*` instead : there is no `long long` inside the structure
* bump version numberYann Collet2020-09-291-1/+1
| | | | to v1.9.3
* comment bug on older versions of ZSTD_compress_destSize()Yann Collet2020-09-181-1/+12
| | | | following investigation in #859
* fix #783Yann Collet2020-08-271-12/+22
| | | | | | | | | | | | | | | | | LZ4_decompress_safe_partial() now also supports a scenario where nb_bytes_to_generate is <= block_decompressed_size And nb_bytes_to_read is >= block_compressed_size. Previously, the only supported scenario was nb_bytes_to_read == block_compress_size. Pay attention that, if nb_bytes_to_read is > block_compressed_size, then, necessarily, it requires that nb_bytes_to_generate is <= block_decompress_size. If both are larger, it will generate corrupted data.
* Merge branch 'fix832' into devYann Collet2020-08-111-2/+2
|\
| * fixed test of gnu c versionYann Collet2020-08-111-2/+2
| |
* | Merge pull request #896 from lz4/fix832Yann Collet2020-08-101-7/+6
|\ \ | |/ | | fix #832
| * fix #832Yann Collet2020-08-101-7/+6
| | | | | | | | does no longer rely on default 0-interpretation when __GNUC__ is not defined
* | Merge pull request #895 from lz4/hugefastYann Collet2020-08-101-1/+2
|\ \ | |/ |/| Fix #876
| * fix #876Yann Collet2020-08-101-1/+2
| | | | | | | | by introducing a max limit acceleration value
* | Remove dirty Field From LZ4_stream_tW. Felix Handte2020-08-061-4/+2
|/
* bumped version number to v1.9.2Yann Collet2019-07-011-1/+1
| | | | to reduce risks that future bug reports in `dev` branch report `v1.9.1` as the failing version.
* precise again that LZ4 decoder needs metadataYann Collet2019-06-061-22/+31
| | | | and that such metadata must be provided / sent / saved by the application.
* added more details for in-place documentationYann Collet2019-05-311-14/+15
|
* updated LZ4_DECOMPRESS_INPLACE_MARGINYann Collet2019-05-301-2/+2
| | | | | to pass worst case scenario. Now adds margin proportional to input size to counter local expansion.
* add more doc on in-place (de)compressionYann Collet2019-05-301-5/+25
|
* ensure lz4.h can be included with or without LZ4_STATIC_LINKING_ONLY in any ↵Yann Collet2019-05-291-4/+12
| | | | | | order ensure correct propagation of LZ4_DISTANCE_MAX
* added comments and macros for in-place (de)compressionYann Collet2019-05-291-2/+46
|
* several minor style changes recommended by clang-tidyYann Collet2019-04-241-2/+2
|
* bumped version numberYann Collet2019-04-191-1/+1
| | | | to v1.9.1
* address a few minor Visual warningsYann Collet2019-04-181-3/+5
| | | | and created target cxx17build
* fix out-of-bound read within LZ4_decompress_fast()Yann Collet2019-04-171-9/+10
| | | | | | | | | | | and deprecate LZ4_decompress_fast(), with deprecation warnings enabled by default. Note that, as a consequence of the fix, LZ4_decompress_fast is now __slower__ than LZ4_decompress_safe(). That's because, since it doesn't know the input buffer size, it must progress more cautiously into the input buffer to ensure to out-of-bound read.
* decompress*_fast() function do not generate deprecation warningsYann Collet2019-04-151-13/+14
| | | | | | | | | they are classified as deprecated in the API documentation (lz4.h) but do not yet trigger a warning, to give time to existing applications to move away. Also, the _fast() variants are still ~5% faster than the _safe() ones after Dave's patch.
* updated doc to underline difference between block and frameYann Collet2019-04-121-7/+11
| | | | as this is a very frequent source of confusion for new users.
* improved documentation for LZ4 dictionary compressionYann Collet2019-04-111-3/+8
|
* added versions in commentsYann Collet2019-04-101-1/+2
|
* LZ4_initStream() checks alignment restrictionYann Collet2019-04-081-7/+10
| | | | updated associated documentation