ezstd icon indicating copy to clipboard operation
ezstd copied to clipboard

Add streaming support

Open ypisetsky opened this issue 9 months ago • 2 comments

This adds bindings for ZSTD_compressStream2 and ZSTD_decompressStream to ezstd. It takes care of repeating calls to those functions until they've processed all of the input as much as possible. The motivating use case of this was compressing a stream of messages on a websocket (and thus getting better compression for subsequent messages in the stream as they can reference previous messages). It also supports using a dictionary for both of these.

ypisetsky avatar Apr 30 '24 00:04 ypisetsky

I'm really baffled by the CI failures on Mac. No clue why linking would fail like that.

ypisetsky avatar Apr 30 '24 15:04 ypisetsky

Hello,

I'm in holiday this week. I'm back in business next week and I will take a look on this. Thanks a lot for your contribution

silviucpp avatar Apr 30 '24 16:04 silviucpp