zstd-ruby 1.5.0.0 → 1.5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +2 -2
- data/README.md +1 -1
- data/ext/zstdruby/extconf.rb +1 -0
- data/ext/zstdruby/libzstd/Makefile +50 -175
- data/ext/zstdruby/libzstd/README.md +7 -1
- data/ext/zstdruby/libzstd/common/bitstream.h +24 -9
- data/ext/zstdruby/libzstd/common/compiler.h +89 -43
- data/ext/zstdruby/libzstd/common/entropy_common.c +11 -5
- data/ext/zstdruby/libzstd/common/error_private.h +79 -0
- data/ext/zstdruby/libzstd/common/fse.h +2 -1
- data/ext/zstdruby/libzstd/common/fse_decompress.c +1 -1
- data/ext/zstdruby/libzstd/common/huf.h +24 -22
- data/ext/zstdruby/libzstd/common/mem.h +18 -0
- data/ext/zstdruby/libzstd/common/portability_macros.h +131 -0
- data/ext/zstdruby/libzstd/common/xxhash.c +5 -805
- data/ext/zstdruby/libzstd/common/xxhash.h +5568 -167
- data/ext/zstdruby/libzstd/common/zstd_internal.h +92 -88
- data/ext/zstdruby/libzstd/common/zstd_trace.h +12 -3
- data/ext/zstdruby/libzstd/compress/clevels.h +134 -0
- data/ext/zstdruby/libzstd/compress/fse_compress.c +63 -27
- data/ext/zstdruby/libzstd/compress/huf_compress.c +537 -104
- data/ext/zstdruby/libzstd/compress/zstd_compress.c +194 -278
- data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +102 -44
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.c +4 -3
- data/ext/zstdruby/libzstd/compress/zstd_compress_literals.h +3 -1
- data/ext/zstdruby/libzstd/compress/zstd_compress_sequences.c +5 -4
- data/ext/zstdruby/libzstd/compress/zstd_compress_superblock.c +3 -2
- data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +3 -3
- data/ext/zstdruby/libzstd/compress/zstd_double_fast.c +289 -114
- data/ext/zstdruby/libzstd/compress/zstd_fast.c +302 -123
- data/ext/zstdruby/libzstd/compress/zstd_lazy.c +418 -502
- data/ext/zstdruby/libzstd/compress/zstd_ldm.c +4 -4
- data/ext/zstdruby/libzstd/compress/zstd_ldm.h +1 -1
- data/ext/zstdruby/libzstd/compress/zstd_ldm_geartab.h +4 -1
- data/ext/zstdruby/libzstd/compress/zstd_opt.c +186 -108
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +59 -29
- data/ext/zstdruby/libzstd/decompress/huf_decompress.c +727 -189
- data/ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S +571 -0
- data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +85 -22
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +744 -220
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +8 -2
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_internal.h +34 -3
- data/ext/zstdruby/libzstd/deprecated/zbuff_compress.c +23 -3
- data/ext/zstdruby/libzstd/dictBuilder/cover.c +9 -2
- data/ext/zstdruby/libzstd/dictBuilder/fastcover.c +11 -4
- data/ext/zstdruby/libzstd/dictBuilder/zdict.c +99 -28
- data/ext/zstdruby/libzstd/legacy/zstd_v01.c +2 -6
- data/ext/zstdruby/libzstd/legacy/zstd_v02.c +3 -7
- data/ext/zstdruby/libzstd/legacy/zstd_v03.c +3 -7
- data/ext/zstdruby/libzstd/legacy/zstd_v04.c +3 -7
- data/ext/zstdruby/libzstd/legacy/zstd_v05.c +3 -7
- data/ext/zstdruby/libzstd/legacy/zstd_v06.c +3 -7
- data/ext/zstdruby/libzstd/legacy/zstd_v07.c +3 -7
- data/ext/zstdruby/libzstd/libzstd.mk +185 -0
- data/ext/zstdruby/libzstd/libzstd.pc.in +1 -0
- data/ext/zstdruby/libzstd/modulemap/module.modulemap +4 -0
- data/ext/zstdruby/libzstd/zdict.h +4 -4
- data/ext/zstdruby/libzstd/zstd.h +179 -136
- data/ext/zstdruby/zstdruby.c +2 -2
- data/lib/zstd-ruby/version.rb +1 -1
- metadata +8 -3
data/ext/zstdruby/zstdruby.c
CHANGED
@@ -13,7 +13,7 @@ static VALUE compress(int argc, VALUE *argv, VALUE self)
|
|
13
13
|
VALUE compression_level_value;
|
14
14
|
rb_scan_args(argc, argv, "11", &input_value, &compression_level_value);
|
15
15
|
|
16
|
-
|
16
|
+
StringValue(input_value);
|
17
17
|
const char* input_data = RSTRING_PTR(input_value);
|
18
18
|
size_t input_size = RSTRING_LEN(input_value);
|
19
19
|
|
@@ -81,7 +81,7 @@ static VALUE decompress_buffered(const char* input_data, size_t input_size)
|
|
81
81
|
|
82
82
|
static VALUE decompress(VALUE self, VALUE input)
|
83
83
|
{
|
84
|
-
|
84
|
+
StringValue(input);
|
85
85
|
const char* input_data = RSTRING_PTR(input);
|
86
86
|
size_t input_size = RSTRING_LEN(input);
|
87
87
|
|
data/lib/zstd-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zstd-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SpringMT
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -106,6 +106,7 @@ files:
|
|
106
106
|
- ext/zstdruby/libzstd/common/mem.h
|
107
107
|
- ext/zstdruby/libzstd/common/pool.c
|
108
108
|
- ext/zstdruby/libzstd/common/pool.h
|
109
|
+
- ext/zstdruby/libzstd/common/portability_macros.h
|
109
110
|
- ext/zstdruby/libzstd/common/threading.c
|
110
111
|
- ext/zstdruby/libzstd/common/threading.h
|
111
112
|
- ext/zstdruby/libzstd/common/xxhash.c
|
@@ -114,6 +115,7 @@ files:
|
|
114
115
|
- ext/zstdruby/libzstd/common/zstd_deps.h
|
115
116
|
- ext/zstdruby/libzstd/common/zstd_internal.h
|
116
117
|
- ext/zstdruby/libzstd/common/zstd_trace.h
|
118
|
+
- ext/zstdruby/libzstd/compress/clevels.h
|
117
119
|
- ext/zstdruby/libzstd/compress/fse_compress.c
|
118
120
|
- ext/zstdruby/libzstd/compress/hist.c
|
119
121
|
- ext/zstdruby/libzstd/compress/hist.h
|
@@ -141,6 +143,7 @@ files:
|
|
141
143
|
- ext/zstdruby/libzstd/compress/zstdmt_compress.c
|
142
144
|
- ext/zstdruby/libzstd/compress/zstdmt_compress.h
|
143
145
|
- ext/zstdruby/libzstd/decompress/huf_decompress.c
|
146
|
+
- ext/zstdruby/libzstd/decompress/huf_decompress_amd64.S
|
144
147
|
- ext/zstdruby/libzstd/decompress/zstd_ddict.c
|
145
148
|
- ext/zstdruby/libzstd/decompress/zstd_ddict.h
|
146
149
|
- ext/zstdruby/libzstd/decompress/zstd_decompress.c
|
@@ -177,7 +180,9 @@ files:
|
|
177
180
|
- ext/zstdruby/libzstd/legacy/zstd_v06.h
|
178
181
|
- ext/zstdruby/libzstd/legacy/zstd_v07.c
|
179
182
|
- ext/zstdruby/libzstd/legacy/zstd_v07.h
|
183
|
+
- ext/zstdruby/libzstd/libzstd.mk
|
180
184
|
- ext/zstdruby/libzstd/libzstd.pc.in
|
185
|
+
- ext/zstdruby/libzstd/modulemap/module.modulemap
|
181
186
|
- ext/zstdruby/libzstd/zdict.h
|
182
187
|
- ext/zstdruby/libzstd/zstd.h
|
183
188
|
- ext/zstdruby/libzstd/zstd_errors.h
|
@@ -205,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
210
|
- !ruby/object:Gem::Version
|
206
211
|
version: '0'
|
207
212
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
213
|
+
rubygems_version: 3.3.3
|
209
214
|
signing_key:
|
210
215
|
specification_version: 4
|
211
216
|
summary: Ruby binding for zstd(Zstandard - Fast real-time compression algorithm)
|