Closed rheia777 closed 1 year ago
Yes, with direct compression we know the size of the payload, so that is embedded in the frame header. With streaming we don't know in advance the size of the payload. So if you look, the difference is in the first few bytes - where the frame header is.
Hello,
I was trying the library out and found it weird that compressing via a stream produces a different result. I've done it in a similar way with other compression libraries and it produced the same result.
Is there something I missed, when using a stream with ZSTD?
Example code:
Output
As you can see the result is almost, but not quite, the same.