Use Fast Reset in LZ4F Again
This commit is contained in:
parent
61c7ceffed
commit
0a2abacd90
@ -550,7 +550,7 @@ static void LZ4F_applyCDict(void* ctx,
|
||||
LZ4_attach_dictionary((LZ4_stream_t *)ctx, cdict ? cdict->fastCtx : NULL);
|
||||
} else {
|
||||
LZ4HC_CCtx_internal *internal_ctx = &((LZ4_streamHC_t *)ctx)->internal_donotuse;
|
||||
LZ4_resetStreamHC((LZ4_streamHC_t*)ctx, level);
|
||||
LZ4_resetStreamHC_fast((LZ4_streamHC_t*)ctx, level);
|
||||
internal_ctx->dictCtx = cdict ? &(cdict->HCCtx->internal_donotuse) : NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user