Skip to content

Brotli.Compress

Name Mandatory Description Default Type
⬅️ Input The byte array to compress. Bytes
Output ➡️ The compressed byte array. Bytes
Quality No Compression quality, higher is better but slower, valid values from 1 to 11. 11 Int

This shard compresses the input byte array using the Brotli algorithm and outputs the smaller compressed byte array. The size of the resulting byte array and the speed of compression can be controlled using the Quality parameter.

Details

The compressed output includes a 4-byte header containing the original input size. This allows for easier decompression if required.