API: add LZ4_decompress_safe_partial_usingDict to support partial decompression with dict#1093
API: add LZ4_decompress_safe_partial_usingDict to support partial decompression with dict#1093
LZ4_decompress_safe_partial_usingDict to support partial decompression with dict#1093Conversation
Signed-off-by: Qi Wang <[email protected]>
dacd14c to
8540b21
Compare
|
|
||
|
|
||
| /*! Obsolete partial decompress with dict functions */ | ||
| LZ4_DEPRECATED("use LZ4_decompress_safe_partial_usingDict() instead") LZ4LIB_API int LZ4_decompress_safe_partial_withPrefix64k(const char* source, char* dest, int compressedSize, int targetOutputSize, int dstCapacity); |
There was a problem hiding this comment.
It's unusual for a newly introduced function to be immediately classified "deprecated".
Is this entry added for the sake of consistency with LZ4_decompress_safe_withPrefix64k() ?
There was a problem hiding this comment.
Thanks for your review! Yes, should I remove it?
| free(partial); | ||
| } | ||
|
|
||
| /* Partial decompression using dict with no dict. */ |
There was a problem hiding this comment.
That's pretty nice,
good testing is a must for a new feature.
|
The implementation looks fine to me. Moreover, it comes with a great battery of tests, which is a welcome relief for reliability concerns. I'm a little concerned by the length of the selected name |
|
OK, I'll go ahead and say that it's almost completely fine, on first attempt. So that's great job. Even the name is green-lighted, because it's a direct reference to existing My only comment is about |
Thanks for your review! I will remove the |
feature request: lz4#1051 Signed-off-by: Qi Wang <[email protected]>
Signed-off-by: Qi Wang <[email protected]>
Signed-off-by: Qi Wang <[email protected]>
LZ4_decompress_safe_partial_usingDict to support partial decompression with dictLZ4_decompress_safe_partial_usingDict to support partial decompression with dict
|
Hi Cyan, could we merge it so I can develop more based on this? Many thanks! |
|
Thanks! |
Add
LZ4_decompress_safe_partial_usingDictAPI to support partial decompression with dictionary.This patch is still working in progress, I will appreciate it if you guys could give me some suggestions. Thanks for your review!
Feature request #1051.