interface to write zstd comp. data to files or buffers
