summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix: Disable LZ4HC correspond functions when ↵Takayuki Matsuoka2022-08-071-1/+3
| | | | LZ4_STATIC_LINKING_ONLY_DISABLE_MEMORY_ALLOCATION is enabled
* removed ->dictBase from lz4hc stateYann Collet2022-07-131-1/+1
| | | | replaced by ->dictStart
* removed ->base from lz4hc stateYann Collet2022-07-131-1/+1
| | | | replaced by ->prefixStart
* minor : specify min versions for library version identifiersYann Collet2022-07-121-24/+5
|
* clarify static sizes of states for static allocationYann Collet2022-07-121-18/+17
|
* Change definitions of LZ4_STREAMSIZE, LZ4_STREAMDECODESIZE and ↵jonrumsey2022-07-111-1/+19
| | | | | | 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
* Fix typos found by codespellDimitri Papadopoulos2021-11-251-1/+1
|
* updated license & header datesYann Collet2020-11-251-1/+1
|
* static state sizeYann Collet2020-11-071-2/+2
| | | | for better inter-version compatibility
* unified internal state declarationYann Collet2020-11-071-40/+15
| | | | align on `void*` instead : there is no `long long` inside the structure
* ensure lz4.h can be included with or without LZ4_STATIC_LINKING_ONLY in any ↵Yann Collet2019-05-291-0/+3
| | | | | | order ensure correct propagation of LZ4_DISTANCE_MAX
* added versions in commentsYann Collet2019-04-101-1/+5
|
* re-enable LZ4_resetStreamHC()Yann Collet2019-04-091-1/+1
| | | | towards deprecation, but still available and fully supported
* modified LZ4_initStreamHC() to look like LZ4_initStream()Yann Collet2019-04-091-3/+3
| | | | | it is now a pure initializer, for statically allocated states. It can initialize any memory area, and because of this, requires size.
* created LZ4_initStream()Yann Collet2019-04-051-2/+2
| | | | | | | | | | - 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*.
* created LZ4_initStreamHC()Yann Collet2019-04-051-26/+49
| | | | | | | | - promoted LZ4_resetStreamHC_fast() to stable - moved LZ4_resetStreamHC() to deprecated (but do not generate a warning yet) - Updated doc, to highlight difference between init and reset - switched all invocations of LZ4_resetStreamHC() onto LZ4_initStreamHC() - misc: ensure `make all` also builds /tests
* moved LZ4_decompress_fast*() into deprecated sectionYann Collet2019-04-041-1/+1
|
* fixed an old bug in LZ4F_flush()Yann Collet2019-04-031-19/+42
| | | | | | | which remained undetected so far, as it requires a fairly large number of conditions to be triggered, starting with enabling Block checksum, which is disabled by default, and which usage is known to be extremely rare.
* moved _destSize() into "stable API" statusYann Collet2019-04-031-41/+41
| | | | as requested in #642
* Merge pull request #593 from felixhandte/lz4hc-publish-staticYann Collet2018-10-161-12/+23
|\ | | | | Extend Macro to Allow Publishing Experimental LZ4HC Functions in Dynamic Libraries
| * Make LZ4HC Experimental Functions Dynamically PublishableW. Felix Handte2018-10-161-12/+23
| |
* | Adding information about dirty context for _HC_ family of functionsOleg Khabinov2018-10-101-2/+11
|/
* increase size of LZ4 contexts for 128-bit systemsYann Collet2018-09-181-10/+20
|
* increase lz4hc context size as constant for 128-bit systemsYann Collet2018-09-181-6/+6
|
* Add `extern "C"` Guards Around Experimental HC DeclarationsW. Felix Handte2018-05-221-0/+8
|
* favorDecSpeed feature can be triggered from lz4frameYann Collet2018-04-261-5/+13
| | | | and lz4hc.
* Revert Stream Size Const to Correct ValueW. Felix Handte2018-04-241-1/+1
|
* Add Comments on New Public APIsW. Felix Handte2018-04-201-0/+29
|
* Add API for Attaching DictionariesW. Felix Handte2018-04-201-0/+27
|
* Remove inputBuffer from Context, Work Around its AbsenceW. Felix Handte2018-04-201-3/+8
|
* Add Fast Reset PathsW. Felix Handte2018-04-201-0/+2
|
* Add a Dictionary Context Pointer to the HC ContextW. Felix Handte2018-04-201-5/+9
|
* fuzzer: added low address compression testYann Collet2018-02-051-4/+4
| | | | is expected to work on linux+gcc only.
* Ensure LZ4_DEPRECATED("...") is before LZ4LIB_APIAsger Hautop Drewsen2018-01-311-17/+17
| | | | | | When using clang++ with std c++14 or c++17 you would get the error "an attribute list cannot appear here" when including "lz4.h" as the visibility attribute is before the c++ attribute. This ensures that the [[deprecated]] c++ attribute is before everything else in the function declarations.
* new level 10Yann Collet2017-12-201-1/+1
| | | | | | | | | | | | lz4opt is only competitive vs lz4hc level 10. Below that level, it doesn't match the speed / compression effectiveness of regular hc parser. This patch propose to extend lz4opt to levels 10-12. The new level 10 tend to compress a bit better and a bit faster than previous one (mileage vary depending on file) The only downside is that `limitedDestSize` mode is now limited to max level 9 (vs 10), since it's only compatible with regular HC parser. (Note : I suspect it's possible to convert lz4opt to support it too, but haven't spent time into it).
* minor comment editYann Collet2017-11-031-22/+19
|
* unified HC levelsYann Collet2017-11-031-2/+1
| | | | | LZ4_setCompressionLevel() can be users accross the whole range of HC levels No more transition issue between Optimal and HC modes
* removed ctx->searchNumYann Collet2017-11-031-3/+1
| | | | | nbSearches now transmitted directly as function parameter easier to track and debug
* LZ4_compress_HC_continue_destSize() now compatible with optimal parserYann Collet2017-11-031-2/+2
| | | | levels 11+
* removed code and reference to binary tree match finderYann Collet2017-11-031-2/+2
| | | | reduced size of LZ4HC state
* lz4opt: added hash chain searchYann Collet2017-10-211-1/+1
|
* dictionary compression correctly uses compression levelYann Collet2017-08-101-7/+16
| | | | Not obvious : copying the state was copying cdict's compression level
* updated NEWSYann Collet2017-06-121-2/+2
|
* liz4hc.h: fix a comment: LZ4HC_MAX_CLEVEL -> LZ4HC_CLEVEL_MAXAlexey Tourbin2017-04-291-2/+2
|
* Export deprecated symbols declared in lz4hc.hDmitry V. Levin2017-03-241-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 25b243588585b06a2d947372284cbfe00da930e9 exported deprecated symbols declared in lz4.h by marking all LZ4_DEPRECATED functions with LZ4LIB_API attribute. This change does the same with functions declared in lz4hc.h file, thus extending the export to lz4hc.h. As result, the following 17 deprecated functions are exported again: LZ4_compressHC LZ4_compressHC2 LZ4_compressHC2_continue LZ4_compressHC2_limitedOutput LZ4_compressHC2_limitedOutput_continue LZ4_compressHC2_limitedOutput_withStateHC LZ4_compressHC2_withStateHC LZ4_compressHC_continue LZ4_compressHC_limitedOutput LZ4_compressHC_limitedOutput_continue LZ4_compressHC_limitedOutput_withStateHC LZ4_compressHC_withStateHC LZ4_createHC LZ4_freeHC LZ4_resetStreamStateHC LZ4_sizeofStreamStateHC LZ4_slideInputBufferHC
* added `extern C` for lz4.h static sectionYann Collet2017-03-171-1/+1
| | | | should make the file more compatible with C++ compiler, such as Visual or g++
* LZ4_compress_HC_continue_destSize() works as intended up to level 10Yann Collet2017-03-161-0/+2
| | | | | It's incompatible with btopt though, so cLevel >= 11 feature much reduced performance (degraded mode)
* LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code pathYann Collet2017-03-161-10/+10
| | | | | Limits compression level to 10, to remain compatible with Hash Chain.
* created LZ4_HC_STATIC_LINKING_ONLY sectionYann Collet2017-03-161-10/+47
| | | | where are exposed new prototypes *_destSize()
* lz4hc: Add LZ4_compressHC_destSize and LZ4_compress_HC_continue_destSizeremittor2017-03-081-0/+2
|