86 references to CompressionLevel
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.ResponseCompression (5)
Microsoft.AspNetCore.ResponseCompression.Tests (1)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticAssets.Tests (2)
Microsoft.Build (1)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.DotNet.Build.Tasks.Installers (3)
Microsoft.DotNet.SourceBuild.Tasks (1)
netstandard (1)
ResponseCompressionSample (1)
System (1)
System.IO.Compression (30)
System\IO\Compression\DeflateZLib\DeflateStream.cs (8)
40public DeflateStream(Stream stream, CompressionLevel compressionLevel) : this(stream, compressionLevel, leaveOpen: false)
45public DeflateStream(Stream stream, CompressionLevel compressionLevel, bool leaveOpen) : this(stream, compressionLevel, leaveOpen, ZLibNative.Deflate_DefaultWindowBits)
100internal DeflateStream(Stream stream, CompressionLevel compressionLevel, bool leaveOpen, int windowBits)
125private static ZLibNative.CompressionLevel GetZLibNativeCompressionLevel(CompressionLevel compressionLevel) =>
128CompressionLevel.Optimal => ZLibNative.CompressionLevel.DefaultCompression,
129CompressionLevel.Fastest => ZLibNative.CompressionLevel.BestSpeed,
130CompressionLevel.NoCompression => ZLibNative.CompressionLevel.NoCompression,
131CompressionLevel.SmallestSize => ZLibNative.CompressionLevel.BestCompression,
System\IO\Compression\ZipArchiveEntry.cs (16)
47private readonly CompressionLevel _compressionLevel;
93internal ZipArchiveEntry(ZipArchive archive, string entryName, CompressionLevel compressionLevel)
97if (_compressionLevel == CompressionLevel.NoCompression)
115_compressionLevel = CompressionLevel.Optimal;
814private static CompressionLevel MapCompressionLevel(BitFlagValues generalPurposeBitFlag, CompressionMethodValues compressionMethod)
8220 => CompressionLevel.Optimal,
8232 => CompressionLevel.SmallestSize,
8244 => CompressionLevel.Fastest,
8256 => CompressionLevel.Fastest,
826_ => CompressionLevel.Optimal
831return CompressionLevel.NoCompression;
835private static BitFlagValues MapDeflateCompressionOption(BitFlagValues generalPurposeBitFlag, CompressionLevel compressionLevel, CompressionMethodValues compressionMethod)
843CompressionLevel.Optimal => 0,
844CompressionLevel.SmallestSize => 2,
845CompressionLevel.Fastest => 6,
846CompressionLevel.NoCompression => 6,
System.IO.Compression.Brotli (7)
System.IO.Compression.ZipFile (12)
System\IO\Compression\ZipFile.Create.cs (10)
279public static void CreateFromDirectory(string sourceDirectoryName, string destinationArchiveFileName, CompressionLevel compressionLevel, bool includeBaseDirectory) =>
349CompressionLevel compressionLevel, bool includeBaseDirectory, Encoding? entryNameEncoding) =>
360/// If you want to include the base directory or specify a compression level, call the <see cref="CreateFromDirectory(string, Stream, CompressionLevel, bool)"/> method overload.
400/// <exception cref="ArgumentOutOfRangeException"><paramref name="compressionLevel"/> is not a valid <see cref="CompressionLevel"/> value.</exception>
401public static void CreateFromDirectory(string sourceDirectoryName, Stream destination, CompressionLevel compressionLevel, bool includeBaseDirectory) =>
428/// <exception cref="ArgumentOutOfRangeException"><paramref name="compressionLevel"/> is not a valid <see cref="CompressionLevel"/> value.</exception>
430CompressionLevel compressionLevel, bool includeBaseDirectory, Encoding? entryNameEncoding) =>
434CompressionLevel? compressionLevel, bool includeBaseDirectory, Encoding? entryNameEncoding)
450CompressionLevel? compressionLevel, bool includeBaseDirectory, Encoding? entryNameEncoding)
471CompressionLevel? compressionLevel, bool includeBaseDirectory)
System.IO.Packaging (9)
System.Reflection.Metadata (1)