Click or drag to resize

DeflateStream Class

Provides methods and properties for compressing and decompressing streams using the Deflate algorithm.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CrestronIOStream
    Crestron.SimplSharp.CrestronIO.CompressionDeflateStream

Namespace: Crestron.SimplSharp.CrestronIO.Compression
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public class DeflateStream : Stream

The DeflateStream type exposes the following members.

Constructors
 NameDescription
Public methodDeflateStream(Stream, CompressionMode) Initializes a new instance of the System.IO.Compression.DeflateStream class using the specified stream and System.IO.Compression.CompressionMode value.
Public methodDeflateStream(Stream, CompressionMode, Boolean) Initializes a new instance of the System.IO.Compression.DeflateStream class using the specified stream and System.IO.Compression.CompressionMode value, and a value that specifies whether to leave the stream open.
Top
Properties
 NameDescription
Public propertyBaseStream Gets a reference to the underlying stream.
Public propertyCanRead Gets a value indicating whether the stream supports reading while decompressing a file.
(Overrides StreamCanRead)
Public propertyCanSeek Gets a value indicating whether the stream supports seeking.
(Overrides StreamCanSeek)
Public propertyCanTimeout Gets a value that determines whether the current stream can time out.
(Inherited from Stream)
Public propertyCanWrite Gets a value indicating whether the stream supports writing.
(Overrides StreamCanWrite)
Public propertyLength This property is not supported and always throws a System.NotSupportedException.
(Overrides StreamLength)
Public propertyPosition This property is not supported and always throws a System.NotSupportedException.
(Overrides StreamPosition)
Public propertyReadTimeout Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
(Inherited from Stream)
Public propertyWriteTimeout Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.
(Inherited from Stream)
Top
Methods
 NameDescription
Public methodBeginRead Begins an asynchronous read operation.
(Inherited from Stream)
Public methodBeginWrite Begins an asynchronous write operation.
(Inherited from Stream)
Public methodClose Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
(Inherited from Stream)
Public methodDispose Releases all resources used by the Crestron.SimplSharp.CrestronStream.Stream.
(Inherited from Stream)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the System.IO.Compression.DeflateStream and optionally releases the managed resources.
(Overrides StreamDispose(Boolean))
Public methodEndRead Waits for the pending asynchronous read to complete.
(Inherited from Stream)
Public methodEndWrite Ends an asynchronous write operation.
(Inherited from Stream)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Destructor for DeflateStream.
(Overrides ObjectFinalize)
Public methodFlush Flushes the contents of the internal buffer of the current stream object to the underlying stream.
(Overrides StreamFlush)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodRead Reads a number of decompressed bytes into the specified byte array.
(Overrides StreamRead(Byte, Int32, Int32))
Public methodReadByte Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
(Inherited from Stream)
Public methodSeek This operation is not supported and always throws a System.NotSupportedException.
(Overrides StreamSeek(Int64, SeekOrigin))
Public methodSetLength This operation is not supported and always throws a System.NotSupportedException.
(Overrides StreamSetLength(Int64))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite Writes compressed bytes to the underlying stream from the specified byte array.
(Overrides StreamWrite(Byte, Int32, Int32))
Public methodWriteByte Writes a byte to the current position in the stream and advances the position within the stream by one byte.
(Inherited from Stream)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also