Yann Collet
32fb407c9d
updated a bunch of headers
...
for the new license
2017-08-18 16:52:05 -07:00
Yann Collet
7bd1a2900e
added ZSTD_dictMode_e to control dictionary loading mode
2017-06-21 11:50:33 -07:00
Yann Collet
33a7e679e5
significant zlib wrapper code refactoring
...
code indentation
variable scope and names
constify
Only coding style changes.
The logic should remain the same.
2017-06-02 17:10:49 -07:00
Yann Collet
4effccbf56
zlib_wrapper's uncompress() uses ZSTD_isFrame() for routing
...
more generic and safer than using own routing for magic number comparison
2017-06-02 14:27:11 -07:00
Yann Collet
dcb7535352
ensure zlibwrapper uses ZSTD_malloc() and ZSTD_free()
...
which is compatible with { NULL, NULL, NULL }
2017-06-02 14:01:21 -07:00
Yann Collet
ae728a43b8
removed defaultCustomMem
...
now ZSTD_customCMem is promoted as new default.
Advantages : ZSTD_customCMem = { NULL, NULL, NULL},
so it's natural default after a memset.
ZSTD_customCMem is public constant
(defaultCustomMem was private only).
Also : makes it possible to introduce ZSTD_calloc(),
which can now default to stdlib's calloc()
when it detects system default.
Fixed zlibwrapper which depended on defaultCustomMem.
2017-05-30 17:11:39 -07:00
Yann Collet
31533bacce
Changed ZSTD_createCDict_advanced()
...
It now only uses compressionParameters as argument.
It produces many changes throughout user code,
though hopefully they tend to be simple :
just provide the cParams part from existing ZSTD_parameters.
Some programs might depend on ZSTD_createCDict_advanced() to pass frame parameters.
This change will force them to revisit this strategy and fix it,
since frame parameters are effectively silently ignored in current version.
2017-04-27 00:29:04 -07:00
Yann Collet
4f818182b8
clarified frame parameters for ZSTD_compress*_usingCDict()
...
created ZSTD_compressBegin_usingCDict_internal(),
which gives direct control to frame Parameters.
ZSTD_resetCStream_internal() now points into it.
2017-04-17 18:29:06 -07:00
Sean Purcell
680e4e0953
Ignore symbolic links unless --force specified
2017-03-23 11:52:09 -07:00
Sean Purcell
042ba122ae
Change g_displayLevel to int and fix DISPLAYUPDATE flush
2017-03-23 11:21:59 -07:00
Przemyslaw Skibinski
5c42aad169
zlibWrapper: better description of ZWRAP_useZSTDcompression
2017-02-23 18:28:48 +01:00
Przemyslaw Skibinski
e052c60540
introduce UTIL_freq_t
2017-02-20 11:27:11 +01:00
Przemyslaw Skibinski
94abd6a26c
SET_REALTIME_PRIORITY
2017-02-07 16:36:19 +01:00
Nick Terrell
9c018cc140
Add BUCK files for Nuclide support
2017-01-27 10:43:12 -08:00
Przemyslaw Skibinski
29157320fb
improved ZSTD_compressBlock_opt_extDict_generic
2017-01-27 10:43:02 -08:00
Przemyslaw Skibinski
502966ab9c
zlibWrapper: added the totalInBytes flag - we need it as strm->total_in can be reset by user
2017-01-19 12:10:52 +01:00
Przemyslaw Skibinski
957a6d596b
updated link to copyright notice
2017-01-18 19:04:00 +01:00
Przemyslaw Skibinski
c3a04deda2
fixed clang warnings in gzread.c and gzwrite.c
2017-01-18 14:36:10 +01:00
Przemyslaw Skibinski
c9512db301
gzcompatibility.h updated to zlib 1.2.11
2017-01-18 12:51:44 +01:00
Przemyslaw Skibinski
3805a00904
gzwrite.c updated to zlib 1.2.11
2017-01-18 12:47:32 +01:00
Przemyslaw Skibinski
5735fd74ee
gzread.c updated to zlib 1.2.11
2017-01-18 12:14:01 +01:00
Przemyslaw Skibinski
7f82aad187
gzlib.c updated to zlib 1.2.11
2017-01-18 12:08:08 +01:00
Przemyslaw Skibinski
69f7990fc5
gzguts.h updated to zlib 1.2.11
2017-01-18 12:01:50 +01:00
Przemyslaw Skibinski
5edab91bbb
get_crc_table only with ZLIB_VERNUM >= 0x1270
2017-01-18 10:39:39 +01:00
Przemyslaw Skibinski
5b114d3c01
zlibWrapper: added get_crc_table
2017-01-17 13:02:06 +01:00
Yann Collet
9ceb49e097
fixed zlib_wrapper conversion warnings
2016-12-22 15:26:33 +01:00
Yann Collet
ba75e9d8c3
fix : zlib wrapper compile in gnu90 mode
2016-12-21 19:57:18 +01:00
Yann Collet
1f57c2ed32
added : ZSTD_createCDict_byReference()
2016-12-21 16:20:11 +01:00
Przemyslaw Skibinski
622d741a67
updated zlib copyright notice
2016-12-13 19:44:07 +01:00
Przemyslaw Skibinski
eee427ee25
fixed fitblk
2016-12-13 19:14:04 +01:00
Przemyslaw Skibinski
95f34e056a
zlibWrapper/README.md: updated info about gzip file access functions
2016-12-06 11:36:24 +01:00
Yann Collet
2f902f946c
fixed zlibwrapper use of xxh
2016-12-06 08:52:53 +01:00
Przemyslaw Skibinski
dc2fe75732
gzread.c: improved comments
2016-12-01 11:56:20 +01:00
Przemyslaw Skibinski
45f7e00197
gz_state FAR *state
2016-11-30 08:02:58 +01:00
Przemyslaw Skibinski
adf215e6e3
fixed Travis warnings
2016-11-29 20:32:42 +01:00
Przemyslaw Skibinski
f0d7da79de
updated headers in gz* files
2016-11-29 18:02:34 +01:00
Przemyslaw Skibinski
087bd2c198
compile with -Wstrict-aliasing=1
2016-11-29 17:57:00 +01:00
Przemyslaw Skibinski
0feb24a2fa
gzread.c, gzwrite.c: gz_statep is union
2016-11-29 16:05:52 +01:00
Przemyslaw Skibinski
a1f60632cb
gz_statep is union
2016-11-29 15:50:28 +01:00
Przemyslaw Skibinski
0fa3447dee
plainly marked altered files from zlib
2016-11-28 16:55:14 +01:00
Przemyslaw Skibinski
8b3e2f1a0b
updated zlibWrapper/Makefile
2016-11-28 15:41:36 +01:00
Przemyslaw Skibinski
c77befef81
make gz* functions compatible with zlib 1.2.3+
2016-11-28 14:09:26 +01:00
Przemyslaw Skibinski
91437d844d
added gzcompatibility.h
2016-11-28 13:25:42 +01:00
Przemyslaw Skibinski
edd3e2a834
Z_TREES only with ZLIB_VERNUM >= 0x1240
2016-11-28 12:46:16 +01:00
Przemyslaw Skibinski
a641776197
zlibWrapper: improve "make clean"
2016-11-25 17:13:25 +01:00
Przemyslaw Skibinski
4c690507a7
added minigzip test
2016-11-25 14:45:55 +01:00
Przemyslaw Skibinski
96fca2bd2d
improved zwrapbench.c
2016-11-25 14:36:27 +01:00
Przemyslaw Skibinski
37a00f2ac7
turn on test_gzio
2016-11-25 14:09:29 +01:00
Przemyslaw Skibinski
6b3c2018db
added minigzip
2016-11-24 18:26:47 +01:00
Przemyslaw Skibinski
3bf9a72d95
experimental support for gz* functions
2016-11-24 18:26:30 +01:00
Przemyslaw Skibinski
de4b4fc36f
zlibWrapper: added XXH_NAMESPACE
2016-11-21 15:03:05 +01:00
Przemyslaw Skibinski
6cecb35f98
zwrapbench uses z_const
2016-11-04 17:49:17 +01:00
Przemyslaw Skibinski
7e06e6ab19
updated Makefile for zlibWrapper
2016-11-04 16:50:39 +01:00
Przemyslaw Skibinski
0694ae2c83
typedef ZWRAP_CCtx internal_state
2016-11-04 16:05:28 +01:00
Przemyslaw Skibinski
d007eb5f9f
fixed clang warnings in zlibWrapper
2016-11-04 11:20:58 +01:00
Yann Collet
6c111fa3da
fix zlibWrapper make test
2016-11-03 00:44:02 -07:00
Przemyslaw Skibinski
3ee94a7600
zstd_compression_format.md moved to doc/
2016-10-24 15:58:07 +02:00
inikep
ba49de38cf
zlibWrapper: updated README.md
2016-10-03 14:19:30 +02:00
inikep
447e5128da
updated .gitignore
2016-09-28 13:23:11 +02:00
inikep
22e2730081
ZSTD_resetDStream moved to inflate()
2016-09-27 18:21:17 +02:00
inikep
20859afb4c
renamed to ZWRAP_deflateReset_keepDict
2016-09-27 17:27:43 +02:00
inikep
856f91ebef
redirection to deflateReset and inflateReset
2016-09-27 17:14:04 +02:00
inikep
706876f09a
added ZWRAP_deflateResetWithoutDict and ZWRAP_inflateResetWithoutDict
2016-09-27 16:56:07 +02:00
inikep
572d428b59
updated description of ZWRAP_setPledgedSrcSize
2016-09-27 15:25:20 +02:00
inikep
6072eaaa21
improved speed of deflate without Z_FINISH
2016-09-27 15:24:44 +02:00
inikep
60dddc2109
zlibWrapper: minor tweaks
2016-09-26 22:47:39 +02:00
inikep
ad468ab25c
updated zlibWrapper\Makefile
2016-09-26 22:24:04 +02:00
inikep
a03b7a7f1b
zwrapbench: improved tests with a dictionary
2016-09-26 22:11:55 +02:00
inikep
c941d396c0
updated results in zlibWrapper\README.md
2016-09-26 22:11:08 +02:00
inikep
67a1f4d72a
improved behavior of deflateReset
2016-09-26 20:49:18 +02:00
inikep
cbd7bdca1e
improved zwrapbench tests
2016-09-26 20:41:52 +02:00
inikep
2fb7e6b15d
zlibWrapper\README.md: reordering
2016-09-23 21:32:16 +02:00
inikep
cd2f6b680b
zlibWrapper\README.md: minor tweaks
2016-09-23 20:03:17 +02:00
inikep
2bb83e8271
zlibWrapper\README.md: Reusing contexts
2016-09-23 18:59:53 +02:00
inikep
e82c811946
updated zlibWrapper\README.md
2016-09-23 16:20:13 +02:00
inikep
57b9708054
faster inflate() autodetection of zlib/zstd
2016-09-23 14:59:46 +02:00
inikep
b88accfb5f
use valgrind with a dynamic zstd library
2016-09-23 13:38:02 +02:00
inikep
68cd4766c9
initialization of strm->adler
2016-09-23 12:42:21 +02:00
inikep
f77a1132a7
improved valgrind tests
2016-09-23 12:01:38 +02:00
inikep
4602e53021
added valgrindTest for zlibWrapper
2016-09-23 10:43:37 +02:00
inikep
cf3ec08840
ZWRAP_setPledgedSrcSize not required with Z_FINISH
2016-09-23 10:30:26 +02:00
inikep
252c20dd34
a new ZWRAP API
2016-09-23 09:08:40 +02:00
inikep
f7ab3adaaa
zwrapbench: testing reusing of a context
2016-09-22 17:59:10 +02:00
inikep
f71828f2c4
zwrapbench: testing speed of ZSTD_decompressStream
2016-09-22 15:55:01 +02:00
inikep
8e8b046f64
zwrapbench benchmarks zlibWrapper
2016-09-22 14:42:32 +02:00
inikep
54320ce905
zwrapbench tests zlib
2016-09-22 11:52:53 +02:00
inikep
d755717941
added setZWRAPdecompressionType
2016-09-22 11:52:00 +02:00
inikep
3be5c6e6db
improved zlibWrapper\Makefile
2016-09-22 10:23:58 +02:00
inikep
dfef5ddc9e
added zwrapbench.c
2016-09-22 10:23:26 +02:00
inikep
adc4c1640f
changed naming convention
2016-09-21 19:39:25 +02:00
inikep
61abecc417
added ZWRAP_initializeCStream
2016-09-21 19:30:29 +02:00
inikep
7e7925710d
tests with ZSTD_setPledgedSrcSize
2016-09-21 17:17:29 +02:00
inikep
230a61fff2
added ZSTD_setPledgedSrcSize
2016-09-21 16:46:35 +02:00
inikep
146ef58ff8
added ZWRAPC_finish_with_error_message and ZWRAPD_finish_with_error_message
2016-09-21 14:05:01 +02:00
inikep
3fa1b748d6
improved deflateEnd and inflateEnd
2016-09-21 13:51:57 +02:00
inikep
694130015b
implemented inflateReset2
2016-09-20 16:40:50 +02:00
inikep
86fc8e0003
added ZWRAP_DCtx.decompState
2016-09-20 16:22:28 +02:00
inikep
554b3b935c
improved logging
2016-09-20 15:18:00 +02:00
inikep
c038c30048
implemented deflateReset
2016-09-20 12:54:26 +02:00
inikep
18f66459d5
use Z_STREAM_ERROR as default error
2016-09-20 12:50:59 +02:00