1 type derived from DeflateStream
Microsoft.CodeAnalysis (1)
EmbeddedText.cs (1)
348private sealed class CountingDeflateStream : DeflateStream
28 instantiations of DeflateStream
dotnet-svcutil-lib (4)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoderCompressionHandler.cs (4)
31(Stream)new DeflateStream(memoryStream, CompressionMode.Decompress)) 67(Stream)new DeflateStream(bufferedOutStream, CompressionMode.Compress, true)) 83(Stream)new DeflateStream(compressedStream, CompressionMode.Decompress, false); 90(Stream)new DeflateStream(uncompressedStream, CompressionMode.Compress, true);
Microsoft.AspNetCore.RequestDecompression.Tests (1)
RequestDecompressionMiddlewareTests.cs (1)
57new DeflateStream(compressedContent, CompressionMode.Compress);
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
71using (var deflater = new DeflateStream(stream, CompressionMode.Decompress))
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
728using (var deflateStream = new DeflateStream(inStream, CompressionMode.Decompress))
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
220using (var deflater = new DeflateStream(stream, CompressionMode.Decompress))
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
290using (var deflater = new DeflateStream(stream, CompressionMode.Decompress))
Microsoft.CodeAnalysis.UnitTests (1)
EmbeddedTextTests.cs (1)
263using (var source = new DeflateStream(new MemoryStream(bytes.ToArray()), CompressionMode.Decompress))
Microsoft.ML.Data (2)
DataLoadSave\Binary\CompressionKind.cs (2)
41return new DeflateStream(stream, CompressionMode.Compress, true); 60return new DeflateStream(stream, CompressionMode.Decompress, true);
Microsoft.ML.FastTree (2)
Utils\StreamExtensions.cs (2)
73using (var ds = new DeflateStream(stream, CompressionMode.Decompress)) 94using (DeflateStream ds = new DeflateStream(stream, CompressionMode.Compress))
Microsoft.ML.Tokenizers (1)
Model\TiktokenTokenizer.cs (1)
1229using Stream deflateStream = new DeflateStream(compressedStream, CompressionMode.Decompress);
Microsoft.ML.Tokenizers.Tests (1)
TiktokenTests.cs (1)
50using Stream deflateStream = new DeflateStream(compressedStream, CompressionMode.Decompress);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
SymbolSearch\SymbolSearchUpdateEngineTests.vb (1)
675Dim zipStream = New DeflateStream(saveStream, CompressionMode.Compress)
System.IO.Compression (8)
System\IO\Compression\GZipStream.cs (3)
21_deflateStream = new DeflateStream(stream, mode, leaveOpen, ZLibNative.GZip_DefaultWindowBits); 32_deflateStream = new DeflateStream(stream, compressionLevel, leaveOpen, ZLibNative.GZip_DefaultWindowBits); 44_deflateStream = new DeflateStream(stream, compressionOptions, leaveOpen, ZLibNative.GZip_DefaultWindowBits);
System\IO\Compression\ZipArchiveEntry.cs (2)
647compressorStream = new DeflateStream(backingStream, _compressionLevel, leaveBackingStreamOpen); 675uncompressedStream = new DeflateStream(compressedStreamToRead, CompressionMode.Decompress, _uncompressedSize);
System\IO\Compression\ZLibStream.cs (3)
29_deflateStream = new DeflateStream(stream, mode, leaveOpen, ZLibNative.ZLib_DefaultWindowBits); 45_deflateStream = new DeflateStream(stream, compressionLevel, leaveOpen, ZLibNative.ZLib_DefaultWindowBits); 57_deflateStream = new DeflateStream(stream, compressionOptions, leaveOpen, ZLibNative.ZLib_DefaultWindowBits);
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (1)
308new DeflateStream(stream, CompressionMode.Decompress);
System.Reflection.Metadata (2)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
51using (var deflate = new DeflateStream(compressed, CompressionLevel.Optimal, leaveOpen: true))
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
94using var deflate = new DeflateStream(compressed, CompressionMode.Decompress, leaveOpen: true);
29 references to DeflateStream
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (1)
71using (var deflater = new DeflateStream(stream, CompressionMode.Decompress))
SymbolSearch\Windows\SymbolSearchUpdateEngine.Update.cs (1)
728using (var deflateStream = new DeflateStream(inStream, CompressionMode.Decompress))
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
220using (var deflater = new DeflateStream(stream, CompressionMode.Decompress))
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\MetadataReaderUtils.cs (1)
290using (var deflater = new DeflateStream(stream, CompressionMode.Decompress))
Microsoft.CodeAnalysis.UnitTests (1)
EmbeddedTextTests.cs (1)
263using (var source = new DeflateStream(new MemoryStream(bytes.ToArray()), CompressionMode.Decompress))
Microsoft.ML.FastTree (2)
Utils\StreamExtensions.cs (2)
73using (var ds = new DeflateStream(stream, CompressionMode.Decompress)) 94using (DeflateStream ds = new DeflateStream(stream, CompressionMode.Compress))
netstandard (1)
netstandard.cs (1)
893[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Compression.DeflateStream))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
559[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.Compression.DeflateStream))]
System.IO.Compression (17)
System\IO\Compression\DeflateZLib\DeflateStream.cs (11)
50/// Initializes a new instance of the <see cref="DeflateStream"/> class by using the specified stream, compression options, and optionally leaves the stream open. 54/// <param name="leaveOpen"><see langword="true" /> to leave the stream object open after disposing the <see cref="DeflateStream"/> object; otherwise, <see langword="false" /></param> 279if (GetType() != typeof(DeflateStream)) 411if (GetType() != typeof(DeflateStream)) 512if (GetType() != typeof(DeflateStream)) 527if (GetType() != typeof(DeflateStream)) 750return GetType() == typeof(DeflateStream) ? 818if (GetType() != typeof(DeflateStream)) 909private readonly DeflateStream _deflateStream; 914public CopyToStream(DeflateStream deflateStream, Stream destination, int bufferSize) : 919public CopyToStream(DeflateStream deflateStream, Stream destination, int bufferSize, CancellationToken cancellationToken)
System\IO\Compression\GZipStream.cs (2)
13private DeflateStream _deflateStream; 187DeflateStream? ds = _deflateStream;
System\IO\Compression\ZLibCompressionOptions.cs (2)
7/// Provides compression options to be used with <see cref="ZLibStream"/>, <see cref="DeflateStream"/> and <see cref="GZipStream"/>. 51/// Defines the compression algorithms that can be used for <see cref="DeflateStream"/>, <see cref="GZipStream"/> or <see cref="ZLibStream"/>.
System\IO\Compression\ZLibStream.cs (2)
14private DeflateStream _deflateStream; 278DeflateStream? ds = _deflateStream;
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (1)
228/// <summary>Stream that wraps either <see cref="ZLibStream"/> or <see cref="DeflateStream"/> for decompression.</summary>
System.Reflection.Metadata (2)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
51using (var deflate = new DeflateStream(compressed, CompressionLevel.Optimal, leaveOpen: true))
System\Reflection\PortableExecutable\PEReader.EmbeddedPortablePdb.cs (1)
94using var deflate = new DeflateStream(compressed, CompressionMode.Decompress, leaveOpen: true);