diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-04-10 17:12:30 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-10 17:26:17 (GMT) |
commit | 59c7d951213bf8593438ae811549655d5a78d2fc (patch) | |
tree | 695666fd41e601e488f2bfc214fdd87538a63cf4 /lib/lz4.h | |
parent | f88dc900553b3a029e9cd114800016f9364ffc7b (diff) | |
download | lz4-59c7d951213bf8593438ae811549655d5a78d2fc.zip lz4-59c7d951213bf8593438ae811549655d5a78d2fc.tar.gz lz4-59c7d951213bf8593438ae811549655d5a78d2fc.tar.bz2 |
Expose a Faster Stream Reset Function
Diffstat (limited to 'lib/lz4.h')
-rw-r--r-- | lib/lz4.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -366,6 +366,14 @@ LZ4_compress_fast_extState_noReset() : LZ4LIB_API int LZ4_compress_fast_extState_noReset (void* state, const char* src, char* dst, int srcSize, int dstCapacity, int acceleration); + +/*! LZ4_resetStream_fast() : + * An LZ4_stream_t structure can be allocated once and re-used multiple times. + * Use this function to start compressing a new stream. + */ +LZ4LIB_API void LZ4_resetStream_fast (LZ4_stream_t* streamPtr); + + /*-************************************ * Private definitions ************************************** |