19 references to BrotliUtils
System.IO.Compression.Brotli (19)
System\IO\Compression\BrotliStream.cs (2)
41_encoder.SetQuality(BrotliUtils.Quality_Default); 42_encoder.SetWindow(BrotliUtils.WindowBits_Default);
System\IO\Compression\enc\BrotliCompressionOptions.cs (1)
11private int _quality = BrotliUtils.Quality_Default;
System\IO\Compression\enc\BrotliEncoder.cs (15)
77if (quality < BrotliUtils.Quality_Min || quality > BrotliUtils.Quality_Max) 79throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0, BrotliUtils.Quality_Max)); 95if (window < BrotliUtils.WindowBits_Min || window > BrotliUtils.WindowBits_Max) 97throw new ArgumentOutOfRangeException(nameof(window), SR.Format(SR.BrotliEncoder_Window, window, BrotliUtils.WindowBits_Min, BrotliUtils.WindowBits_Max)); 192public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) => TryCompress(source, destination, out bytesWritten, BrotliUtils.Quality_Default, BrotliUtils.WindowBits_Default); 203if (quality < 0 || quality > BrotliUtils.Quality_Max) 205throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0, BrotliUtils.Quality_Max)); 207if (window < BrotliUtils.WindowBits_Min || window > BrotliUtils.WindowBits_Max) 209throw new ArgumentOutOfRangeException(nameof(window), SR.Format(SR.BrotliEncoder_Window, window, BrotliUtils.WindowBits_Min, BrotliUtils.WindowBits_Max));
System\IO\Compression\enc\BrotliStream.Compress.cs (1)
29_encoder.SetQuality(BrotliUtils.GetQualityFromCompressionLevel(compressionLevel));