Yann Collet
be634559e3
update obsolete section documentation
...
and update manuals.
fix #712
2020-11-08 12:54:59 -08:00
Yann Collet
67e661a2ad
static state size
...
for better inter-version compatibility
2020-11-06 18:26:13 -08:00
Yann Collet
211d653ff8
re-enable alignment test on all targets
2020-11-06 16:43:14 -08:00
Yann Collet
0c56f838ed
unified internal state declaration
...
align on `void*` instead : there is no `long long` inside the structure
2020-11-06 16:15:51 -08:00
Yann Collet
293713a4fa
bump version number
...
to v1.9.3
2020-09-29 14:27:39 -07:00
Yann Collet
dc27b7ae41
comment bug on older versions of ZSTD_compress_destSize()
...
following investigation in #859
2020-09-17 20:59:01 -07:00
Yann Collet
c5d6f8a8be
fix #783
...
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.
2020-08-27 00:17:57 -07:00
Yann Collet
f328e329b3
Merge branch 'fix832' into dev
2020-08-10 18:17:09 -07:00
Yann Collet
28e5a4e054
fixed test of gnu c version
2020-08-10 17:11:49 -07:00
Yann Collet
ac65f939cd
Merge pull request #896 from lz4/fix832
...
fix #832
2020-08-10 14:31:48 -07:00
Yann Collet
b26c140a54
Merge pull request #895 from lz4/hugefast
...
Fix #876
2020-08-10 12:52:32 -07:00
Yann Collet
a29ade17a0
fix #832
...
does no longer rely on default 0-interpretation when __GNUC__ is not defined
2020-08-10 11:51:57 -07:00
Yann Collet
7b1b078dfc
fix #876
...
by introducing a max limit acceleration value
2020-08-10 11:03:27 -07:00
W. Felix Handte
9af86f0841
Remove dirty Field From LZ4_stream_t
2020-08-06 16:06:40 -04:00
Yann Collet
bb5c34a875
bumped version number to v1.9.2
...
to reduce risks that future bug reports in `dev` branch report `v1.9.1` as the failing version.
2019-07-01 09:01:43 -07:00
Yann Collet
1d759576b9
precise again that LZ4 decoder needs metadata
...
and that such metadata must be provided / sent / saved by the application.
2019-06-06 13:20:30 -07:00
Yann Collet
5997e139f5
added more details for in-place documentation
2019-05-31 11:56:59 -07:00
Yann Collet
676d46df27
updated LZ4_DECOMPRESS_INPLACE_MARGIN
...
to pass worst case scenario.
Now adds margin proportional to input size to counter local expansion.
2019-05-30 16:19:30 -07:00
Yann Collet
22adbb176a
add more doc on in-place (de)compression
2019-05-30 09:45:21 -07:00
Yann Collet
444550defa
ensure lz4.h can be included with or without LZ4_STATIC_LINKING_ONLY in any order
...
ensure correct propagation of LZ4_DISTANCE_MAX
2019-05-29 12:21:14 -07:00
Yann Collet
b17f578a91
added comments and macros for in-place (de)compression
2019-05-29 12:06:13 -07:00
Yann Collet
ba99eac4d0
several minor style changes recommended by clang-tidy
2019-04-24 10:03:02 -07:00
Yann Collet
7a4e3b1fac
bumped version number
...
to v1.9.1
2019-04-19 11:59:49 -07:00
Yann Collet
0b876db6d4
address a few minor Visual warnings
...
and created target cxx17build
2019-04-18 16:07:16 -07:00
Yann Collet
25d96f1e4d
fix out-of-bound read within LZ4_decompress_fast()
...
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.
2019-04-17 15:01:53 -07:00
Yann Collet
1f4a412646
decompress*_fast() function do not generate deprecation warnings
...
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.
2019-04-15 10:33:40 -07:00
Yann Collet
21ff1a839a
updated doc to underline difference between block and frame
...
as this is a very frequent source of confusion for new users.
2019-04-12 11:27:44 -07:00
Yann Collet
bcb26565a7
improved documentation for LZ4 dictionary compression
2019-04-11 15:20:46 -07:00
Yann Collet
db60ed19b1
added versions in comments
2019-04-09 18:23:32 -07:00
Yann Collet
c198a39a66
LZ4_initStream() checks alignment restriction
...
updated associated documentation
2019-04-08 12:49:54 -07:00
Yann Collet
34f0004a5e
added comment on initStream + _extState_
...
as suggested by @felixhandte
2019-04-05 15:35:19 -07:00
Yann Collet
2ece0d8380
created LZ4_initStream()
...
- 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*.
2019-04-05 12:56:26 -07:00
Yann Collet
7a39fb8fb6
make _fast*()
decoder generate a deprecation warning
...
updated modification
2019-04-04 12:47:36 -07:00
Yann Collet
ab91300509
moved LZ4_decompress_fast*() into deprecated section
2019-04-04 12:24:46 -07:00
Yann Collet
50f01d881d
fixed doc
...
and bumped version number fo v1.9.0
2019-04-03 14:27:21 -07:00
Yann Collet
1b819bfd63
Merge pull request #593 from felixhandte/lz4hc-publish-static
...
Extend Macro to Allow Publishing Experimental LZ4HC Functions in Dynamic Libraries
2018-10-16 15:33:58 -07:00
W. Felix Handte
45dc195f84
Change Comment and Make LZ4LIB_STATIC_API Available to LZ4HC
2018-10-15 17:22:37 -07:00
Oleg Khabinov
28eb88d988
Some followups and renamings
2018-10-01 15:19:45 -07:00
Oleg Khabinov
f2ae385c2f
Rename initCheck to dirtyContext and use it in LZ4_resetStream_fast() to check if full reset is needed.
2018-09-28 14:55:05 -07:00
Yann Collet
c4c19c74b8
changed LZ4_streamDecode member order
...
to reduce memory usage on 128-bits systems
2018-09-25 14:43:19 -07:00
Yann Collet
6381d828fd
increase size of LZ4 contexts for 128-bit systems
2018-09-17 17:31:57 -07:00
Yann Collet
a803230f67
unpublish static-only function
...
these functions are now unpublished in dll by default.
One needs to opt-in, using macro LZ4_PUBLISH_STATIC_FUNCTIONS.
used this opportunity to update a bunch of api comments in lz4.h
2018-09-13 16:02:11 -07:00
Yann Collet
b87a8e9e62
fixed minor warning in fuzzer.c
...
added a few more comments and assert()
2018-09-10 16:48:41 -07:00
Yann Collet
eaed9ea4a1
updated function interface documentation
2018-09-07 16:21:31 -07:00
Yann Collet
bf614d3c51
first sketch for a byte-accurate partial decoder
2018-09-07 15:44:19 -07:00
Yann Collet
e32766cc34
updated API documentation
2018-09-07 11:30:15 -07:00
Yann Collet
0fea528e3a
updated documentation regarding dictionary compression
...
following suggestion from @stbrumme (#558 )
Also : bumped version number, regenerated man page and html doc
2018-09-05 14:05:08 -07:00
Jack Luo
2e52f03a12
fixed spelling mistake in lz4.h
2018-07-28 22:21:57 -04:00
Nick Terrell
4eca78b5c3
Fix LZ4_compress_fast_continue() docs
...
Fixes #549 .
2018-07-10 11:44:03 -07:00
Yann Collet
f3e84ffd41
Merge pull request #529 from felixhandte/lz4f-fast-reset-for-streaming-only
...
LZ4F: Only Reset the LZ4_stream_t when Init'ing a Streaming Block
2018-05-03 15:37:51 -07:00