Use LZ4_initStream instead of deprecated reset calls.

This commit is contained in:
Bartosz Taudul
2026-11-14 13:55:43 +01:00
parent 2ce0e5ad9b
commit aa5240ca19
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2119,7 +2119,7 @@ void Profiler::Worker()
HandshakeStatus handshake = HandshakeWelcome;
m_sock->Send( &handshake, sizeof( handshake ) );
LZ4_resetStream( (LZ4_stream_t*)m_stream );
LZ4_initStream( m_stream, sizeof( LZ4_stream_t ) );
m_sock->Send( &welcome, sizeof( welcome ) );
m_threadCtx = 0;
+1 -1
View File
@@ -54,7 +54,7 @@ public:
break;
case FileCompression::Extreme:
m_streamHC = LZ4_createStreamHC();
LZ4_resetStreamHC( m_streamHC, LZ4HC_CLEVEL_MAX );
LZ4_resetStreamHC_fast( m_streamHC, LZ4HC_CLEVEL_MAX );
break;
case FileCompression::Zstd:
m_streamZstd = ZSTD_createCStream();