rlz4 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/rlz4/src/lib.rs +2 -8
- data/lib/rlz4/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 066ceeda34e122cc50eb81a96dc63ee739f2eb55319bb17a3697cec18804dc1a
|
|
4
|
+
data.tar.gz: fbd64ef66efab0391ad3cd8449a3a0ae464d0712d3044a5ba0df0887f56f0710
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f25c71e2a7f5b79bba4edc23ebdc2d08a5bbea7d851c34ccdfc72440016f6878c4cab19ee02f9a32dfef590dae6a31930361d2bdf552167b90032bf2e4e519ad
|
|
7
|
+
data.tar.gz: 6f31575035eb652a2b9a6195c5b77ee4950019c07a26fd7a9ca999dad112d50db3897fc5b82930e0d20a9c1a592bd273f76abf74de20c799101435c5a8605324
|
data/ext/rlz4/src/lib.rs
CHANGED
|
@@ -471,10 +471,7 @@ fn frame_codec_decompress(
|
|
|
471
471
|
// use a fresh context for the actual decompress so LZ4F_decompress_usingDict
|
|
472
472
|
// sees dstage_init and correctly installs the dict.
|
|
473
473
|
if let Some(d) = &rb_self.dict {
|
|
474
|
-
let temp_ctx =
|
|
475
|
-
Ok(c) => c,
|
|
476
|
-
Err(e) => return Err(e),
|
|
477
|
-
};
|
|
474
|
+
let temp_ctx = create_dctx(ruby)?;
|
|
478
475
|
let mut frame_info = zero_frame_info();
|
|
479
476
|
let mut dummy = compressed.len();
|
|
480
477
|
let ret = unsafe {
|
|
@@ -501,10 +498,7 @@ fn frame_codec_decompress(
|
|
|
501
498
|
}
|
|
502
499
|
|
|
503
500
|
// Fresh context for actual decompression.
|
|
504
|
-
let ctx =
|
|
505
|
-
Ok(c) => c,
|
|
506
|
-
Err(e) => return Err(e),
|
|
507
|
-
};
|
|
501
|
+
let ctx = create_dctx(ruby)?;
|
|
508
502
|
|
|
509
503
|
// Pass the full compressed buffer (including header) to the loop.
|
|
510
504
|
// LZ4F_decompress_usingDict sets the dict before parsing the header
|
data/lib/rlz4/version.rb
CHANGED