Skip to content

Brotli.Decompress

Name Mandatory Description Default Type
⬅️ Input The compressed byte array to decompress. Bytes
Output ➡️ The reverted uncompressed byte array. Bytes

This shard decompresses the input byte array that has been previously compressed using the Brotli.Compress shard.

Details

This shard expects a 4-byte header that contains the original data size present in the input bytes sequence to be able to decompress it. If the 4-byte header is not present (If the input is not compressed or was compressed in a way other than Brotli.Compress which results in a compressed output that does not contain this header), the shard will throw an error.