Skip to content

Commit

Permalink
reset dstream buffers in reset!
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Sep 17, 2024
1 parent 23ff1c3 commit 60079dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libzstd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ end
function reset!(dstream::DStream)
# LibZstd.ZSTD_resetDStream is deprecated
# https://github.com/facebook/zstd/blob/9d2a45a705e22ad4817b41442949cd0f78597154/lib/zstd.h#L2332-L2339
reset!(dstream.ibuffer)
reset!(dstream.obuffer)
return LibZstd.ZSTD_DCtx_reset(dstream, LibZstd.ZSTD_reset_session_only)
end

Expand Down

0 comments on commit 60079dd

Please sign in to comment.