CompressionError if called more than once, the output sink is
not set, or on internal ZSTD errors.
void finish()Finalize the stream.
Flushes all remaining buffered data and marks the compressor as finished. No further calls to write() or flush() are permitted.
CompressionError if called more than once, the output sink is
not set, or on internal ZSTD errors.