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)
11
private int _quality =
BrotliUtils
.Quality_Default;
System\IO\Compression\enc\BrotliEncoder.cs (15)
77
if (quality <
BrotliUtils
.Quality_Min || quality >
BrotliUtils
.Quality_Max)
79
throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0,
BrotliUtils
.Quality_Max));
95
if (window <
BrotliUtils
.WindowBits_Min || window >
BrotliUtils
.WindowBits_Max)
97
throw new ArgumentOutOfRangeException(nameof(window), SR.Format(SR.BrotliEncoder_Window, window,
BrotliUtils
.WindowBits_Min,
BrotliUtils
.WindowBits_Max));
192
public static bool TryCompress(ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten) => TryCompress(source, destination, out bytesWritten,
BrotliUtils
.Quality_Default,
BrotliUtils
.WindowBits_Default);
203
if (quality < 0 || quality >
BrotliUtils
.Quality_Max)
205
throw new ArgumentOutOfRangeException(nameof(quality), SR.Format(SR.BrotliEncoder_Quality, quality, 0,
BrotliUtils
.Quality_Max));
207
if (window <
BrotliUtils
.WindowBits_Min || window >
BrotliUtils
.WindowBits_Max)
209
throw 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));