makeDecompressorById

fnDecompressor makeDecompressorById(string formatId, DecompressionOptions opts, string providerName = null)

Create a streaming decompressor for a string-identified custom format.

Parameters

formatIdThe format identifier string (e.g., "gzip", "bzip2").
optsDecompression options.
providerNameOptional full provider name (e.g., "ddn-gzip"). If null, the highest priority provider is selected.

Returns

A new Decompressor instance.

Throws

CompressionError if no suitable provider is found or if the provider

does not implement decompression.