Method Convert2.BrotliCompress
Overload
Compresses data. Uses System.IO.Compression.BrotliEncoder.
public static byte[] BrotliCompress(ReadOnlySpan<byte> data, int level = 6)
Parameters
data (ReadOnlySpan<byte>) |
level (int)
Compression level, 0 (no compression) to 11 (maximal compression). Default 6. Bigger levels don't make much smaller but can make much slower. |
Returns
byte[] |