summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorAlexander Mohr <alexander.m.mohr@mercedes-benz.com>2022-06-10 06:00:38 (GMT)
committerAlexander Mohr <alexander.m.mohr@mercedes-benz.com>2022-06-10 06:00:38 (GMT)
commit62f6cef564a9478b92e6dbd0faa81eaa1a90b34f (patch)
tree1c801d4a4c20dd950abecd0f173013bbb0f48af4 /lib/lz4.h
parent4aeb5020c35e2464c25eb69d8bf6c7645b8faf20 (diff)
downloadlz4-62f6cef564a9478b92e6dbd0faa81eaa1a90b34f.zip
lz4-62f6cef564a9478b92e6dbd0faa81eaa1a90b34f.tar.gz
lz4-62f6cef564a9478b92e6dbd0faa81eaa1a90b34f.tar.bz2
review: Fix review findings
This commit fixes the review findings Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index 1e793fd..f2a529f 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -346,8 +346,6 @@ LZ4LIB_API int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, in
*/
LZ4LIB_API int LZ4_compress_fast_continue (LZ4_stream_t* streamPtr, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration);
-LZ4LIB_API int LZ4_DictSize (LZ4_stream_t* LZ4_dict, int dictSize);
-
/*! LZ4_saveDict() :
* If last 64KB data cannot be guaranteed to remain available at its current memory location,
* save it into a safer place (char* safeBuffer).
@@ -511,6 +509,17 @@ LZ4LIB_STATIC_API int LZ4_compress_fast_extState_fastReset (void* state, const c
*/
LZ4LIB_STATIC_API void LZ4_attach_dictionary(LZ4_stream_t* workingStream, const LZ4_stream_t* dictionaryStream);
+/*! LZ4_getDictSize():
+ * Get the size of the dictionary. This can be used for adding data without
+ * compression to the LZ4 archive. If linked blocked mode is used the memory
+ * of the dictionary is kept free.
+ * This way uncompressed data does not influence the effectiveness of the
+ * dictionary.
+ * @param LZ4_dict Pointer to the dictionary to get the size of.
+ * @param dictSize The maximum dictionary size. (Normally 64 KB).
+ * @return The size of the dictionary.
+ */
+LZ4LIB_STATIC_API int LZ4_getDictSize (LZ4_stream_t* LZ4_dict, int dictSize);
/*! In-place compression and decompression
*