diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-04-20 18:08:06 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-20 18:08:06 (GMT) |
commit | 8f118cf6e9f3030f52414177d93ab447e8e24128 (patch) | |
tree | 6278d8d2aa3183e7edcbb1fed51b8a1afc02090d /lib/lz4hc.h | |
parent | 0064e8ebc7a475d27ba658ca92e40de75c9cac72 (diff) | |
download | lz4-8f118cf6e9f3030f52414177d93ab447e8e24128.zip lz4-8f118cf6e9f3030f52414177d93ab447e8e24128.tar.gz lz4-8f118cf6e9f3030f52414177d93ab447e8e24128.tar.bz2 |
Remove inputBuffer from Context, Work Around its Absence
Diffstat (limited to 'lib/lz4hc.h')
-rw-r--r-- | lib/lz4hc.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/lz4hc.h b/lib/lz4hc.h index 3b0d0d3..cfc5d9e 100644 --- a/lib/lz4hc.h +++ b/lib/lz4hc.h @@ -149,7 +149,6 @@ struct LZ4HC_CCtx_internal const uint8_t* end; /* next block here to continue on current prefix */ const uint8_t* base; /* All index relative to this position */ const uint8_t* dictBase; /* alternate base for extDict */ - void* inputBuffer; /* deprecated */ uint32_t dictLimit; /* below that point, need extDict */ uint32_t lowLimit; /* below that point, no more dict */ uint32_t nextToUpdate; /* index from which to continue dictionary update */ @@ -167,7 +166,6 @@ struct LZ4HC_CCtx_internal const unsigned char* end; /* next block here to continue on current prefix */ const unsigned char* base; /* All index relative to this position */ const unsigned char* dictBase; /* alternate base for extDict */ - void* inputBuffer; /* deprecated */ unsigned int dictLimit; /* below that point, need extDict */ unsigned int lowLimit; /* below that point, no more dict */ unsigned int nextToUpdate; /* index from which to continue dictionary update */ @@ -210,7 +208,14 @@ LZ4_DEPRECATED("use LZ4_compress_HC_extStateHC() instead") LZ4LIB_API int LZ4_co LZ4_DEPRECATED("use LZ4_compress_HC_continue() instead") LZ4LIB_API int LZ4_compressHC_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize); LZ4_DEPRECATED("use LZ4_compress_HC_continue() instead") LZ4LIB_API int LZ4_compressHC_limitedOutput_continue (LZ4_streamHC_t* LZ4_streamHCPtr, const char* source, char* dest, int inputSize, int maxOutputSize); -/* Deprecated Streaming functions; should no longer be used */ +/* Obsolete streaming functions; degraded functionality; do not use! + * + * In order to perform streaming compression, these functions depended on data + * that is no longer tracked in the state. They have been preserved as well as + * possible: using them will still produce a correct output. However, use of + * LZ4_slideInputBufferHC() will truncate the history of the stream, rather + * than preserve a window-sized chunk of history. + */ LZ4_DEPRECATED("use LZ4_createStreamHC() instead") LZ4LIB_API void* LZ4_createHC (const char* inputBuffer); LZ4_DEPRECATED("use LZ4_saveDictHC() instead") LZ4LIB_API char* LZ4_slideInputBufferHC (void* LZ4HC_Data); LZ4_DEPRECATED("use LZ4_freeStreamHC() instead") LZ4LIB_API int LZ4_freeHC (void* LZ4HC_Data); |