42 references to CompressionMode
System (21)
net\System\Net\HttpWebResponse.cs (4)
544
m_ConnectStream = new GZipWrapperStream(m_ConnectStream,
CompressionMode
.Decompress);
554
m_ConnectStream = new DeflateWrapperStream(m_ConnectStream,
CompressionMode
.Decompress);
730
public GZipWrapperStream(Stream stream,
CompressionMode
mode) : base( stream, mode, false) {
835
public DeflateWrapperStream(Stream stream,
CompressionMode
mode) : base( stream, mode, false) {
sys\System\IO\compression\DeflateStream.cs (14)
26
private
CompressionMode
_mode;
45
public DeflateStream(Stream stream,
CompressionMode
mode)
61
_mode =
CompressionMode
.Decompress;
66
public DeflateStream(Stream stream,
CompressionMode
mode, bool leaveOpen) {
71
if (
CompressionMode
.Compress != mode &&
CompressionMode
.Decompress != mode)
80
case
CompressionMode
.Decompress:
91
case
CompressionMode
.Compress:
130
_mode =
CompressionMode
.Compress;
257
return (_mode ==
CompressionMode
.Decompress && _stream.CanRead);
267
return (_mode ==
CompressionMode
.Compress && _stream.CanWrite);
365
if( _mode !=
CompressionMode
.Decompress)
371
if( _mode !=
CompressionMode
.Compress)
568
if (_mode !=
CompressionMode
.Compress)
sys\System\IO\compression\GZipStream.cs (3)
12
public GZipStream(Stream stream,
CompressionMode
mode)
18
public GZipStream(Stream stream,
CompressionMode
mode, bool leaveOpen) {
19
if (mode ==
CompressionMode
.Decompress)
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\GZipObjectSerializer.cs (2)
16
using (GZipStream gzip = new GZipStream(stream,
CompressionMode
.Decompress, true))
23
using (GZipStream gzip = new GZipStream(stream,
CompressionMode
.Decompress, true))
System.IdentityModel (2)
System\IdentityModel\DeflateCookieTransform.cs (2)
57
using ( DeflateStream deflateStream = new DeflateStream( compressedStream,
CompressionMode
.Decompress, false ) )
102
using ( DeflateStream deflateStream = new DeflateStream( compressedStream,
CompressionMode
.Compress, true ) )
System.ServiceModel (8)
System\ServiceModel\Channels\MessageEncoderCompressionHandler.cs (8)
29
(Stream)new GZipStream(memoryStream,
CompressionMode
.Decompress) :
30
(Stream)new DeflateStream(memoryStream,
CompressionMode
.Decompress))
65
(Stream)new GZipStream(bufferedOutStream,
CompressionMode
.Compress, true) :
66
(Stream)new DeflateStream(bufferedOutStream,
CompressionMode
.Compress, true))
81
(Stream)new GZipStream(compressedStream,
CompressionMode
.Decompress, false) :
82
(Stream)new DeflateStream(compressedStream,
CompressionMode
.Decompress, false);
88
(Stream)new GZipStream(uncompressedStream,
CompressionMode
.Compress, true) :
89
(Stream)new DeflateStream(uncompressedStream,
CompressionMode
.Compress, true);
System.Web (2)
State\SessionStateUtil.cs (2)
197
using(DeflateStream zipStream = new DeflateStream(s,
CompressionMode
.Compress, true)) {
213
using(DeflateStream zipStream = new DeflateStream(stream,
CompressionMode
.Decompress, true)) {
System.Web.Extensions (1)
Handlers\ScriptResourceHandler.cs (1)
515
using (Stream outputStream = new GZipStream(zipped,
CompressionMode
.Compress)) {
System.Workflow.Runtime (2)
Hosting\WorkflowPersistenceService.cs (2)
59
using (GZipStream gzs = new GZipStream(compressedStream,
CompressionMode
.Compress, true))
85
using (GZipStream gzs = new GZipStream(stream,
CompressionMode
.Decompress, true))
WindowsBase (4)
Base\MS\Internal\IO\Packaging\CompressStream.cs (2)
711
newMode == Mode.WritePassThrough ?
CompressionMode
.Compress :
CompressionMode
.Decompress,
Base\MS\Internal\IO\Packaging\DeflateEmulationStream.cs (2)
45
CompressionMode
.Decompress, // compress or decompress
68
CompressionMode
.Compress, // compress or decompress