You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#4 reset the stream for some reason by introducing a call to ZSTD_resetCStream from startproc. I'm trying to understand why.
startproc now calls LibZstd.ZSTD_CCtx_reset and LibZstd.ZSTD_CCtx_setPledgedSrcSize since ZSTD_resetCStream is deprecated. We only call ZSTD_CCtx_reset to reset the session parameters.
ZSTD_resetCStream has the following documentation note.
start a new frame, using same parameters from previous frame.
This is typically useful to skip dictionary loading stage, since it will reuse it in-place.
ZSTD_CCtx_reset has the following documentation note for the session.
The session : will stop compressing current frame, and make CCtx ready to start a new one.
Useful after an error, or to interrupt any ongoing compression.
Any internal data not yet flushed is cancelled.
Compression parameters and dictionary remain unchanged.
They will be used to compress next frame.
Resetting session never fails.
Perhap we should only be calling ZSTD_CCtx_reset after an error is thrown in process?
The text was updated successfully, but these errors were encountered:
#4 reset the stream for some reason by introducing a call to
ZSTD_resetCStream
fromstartproc
. I'm trying to understand why.startproc
now callsLibZstd.ZSTD_CCtx_reset
andLibZstd.ZSTD_CCtx_setPledgedSrcSize
sinceZSTD_resetCStream
is deprecated. We only callZSTD_CCtx_reset
to reset the session parameters.ZSTD_resetCStream
has the following documentation note.ZSTD_CCtx_reset
has the following documentation note for the session.Perhap we should only be calling
ZSTD_CCtx_reset
after an error is thrown inprocess
?The text was updated successfully, but these errors were encountered: