Load a compression dictionary from the provided buffer.
The loaded dictionary will be used for all future compress calls until removed or replaced. Passing an empty buffer to this function will remove a previously loaded dictionary.
Set any parameters you want to set before loading a dictionary, since parameters can't be changed while a dictionary is loaded.
Reset the compressor state to only the provided parameters.
Any loaded dictionary will be cleared, and any parameters not specified will be reset to their default values.
Modify compression parameters.
Parameters not specified will be left at their current values. Changing parameters is not possible while a dictionary is loaded.
High-level interface for customized single-pass Zstandard compression.
Example: Basic usage
Example: Advanced usage