CompressOutputRange that compresses data written to it.compressOutputRange
fn
auto compressOutputRange(OutputSink sink, CompressionOptions opts, string providerName = null)Convenience function to create a compression output range.
Parameters
sink | Delegate to receive compressed chunks. |
opts | Compression options. |
providerName | Optional provider name (e.g., "ddn-gzip"). |
Returns
A
Throws
CompressionError if no suitable provider is found.
fn
auto compressOutputRange(OutputSink sink, CompressionFormat fmt)Convenience overload to create a compression output range with just a format.
Parameters
sink | Delegate to receive compressed chunks. |
fmt | The compression format to use. |
Returns
A
CompressOutputRange that compresses data written to it.Throws
CompressionError if no suitable provider is found.