The following tables list the members exposed by CompressedStream.
Public Constructors
Public Properties
| Name | Description |
| CanRead | Overridden. Determines whether the inner stream supports reading AND the compressed stream supports data decompression. |
| CanSeek | Overridden. A CompressedStream object is not seekable. |
| CanTimeout | Gets a value that determines whether the current stream can time out. (Inherited from System.IO.Stream) |
| CanWrite | Overridden. Determines whether the inner stream supports writing AND the compressed stream supports data compression. |
| CompressorCache | |
| DecompressorCache | |
| InnerStream | Gets the System.IO.Stream that was passed when creating this CompressedStream. |
| Length | Overridden. A CompressedStream object is not seekable. |
| Position | Overridden. A CompressedStream object is not seekable. |
| ReadTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from System.IO.Stream) |
| RemainingOffset | Gets the negative byte offset at which the compressed data ends inside the last data buffer read by the object. |
| Transient | Gets or sets a boolean value indicating if the stream is responsible for closing its inner stream. |
| WriteTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from System.IO.Stream) |
Top
Public Methods
| Name | Description |
| BeginRead | Begins an asynchronous read operation. (Consider using System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| BeginWrite | Begins an asynchronous write operation. (Consider using System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed. (Inherited from System.IO.Stream) |
| CopyTo | Overloaded. Reads the bytes from the current stream and writes them to another stream. (Inherited from System.IO.Stream) |
| CopyToAsync | Overloaded. Asynchronously reads the bytes from the current stream and writes them to another stream. (Inherited from System.IO.Stream) |
| CreateBwtCompressor | |
| CreateBZip2Compressor | |
| CreateDeflate64Compressor | |
| CreateDeflate64Decompressor | |
| CreateDeflateCompressor | |
| CreateDeflateDecompressor | |
| CreateLzmaCompressor | |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject) |
| CreatePPMdCompressor | |
| Dispose | Overloaded. Overridden. Provides correct cleanup of resources in the base class and its derived classes. |
| EndRead | Waits for the pending asynchronous read to complete. (Consider using System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| EndWrite | Ends an asynchronous write operation. (Consider using System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead.) (Inherited from System.IO.Stream) |
| Flush | Overridden. Causes all pending compressed data to be written to the inner stream, and updates the underlying data source or repository of the inner stream with the current state of the buffer. |
| FlushAsync | Overloaded. Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device. (Inherited from System.IO.Stream) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject) |
| Read | Overridden. Reads and decompresses a sequence of bytes from the inner stream. |
| ReadAsync | Overloaded. Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. (Inherited from System.IO.Stream) |
| ReadByte | 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 System.IO.Stream) |
| Seek | Overridden. A CompressedStream object is not seekable. |
| SetLength | Overridden. A CompressedStream object is not seekable. |
| SetupPPMdCompression | Prepares PPMd compression using the specified Stream and compression level. |
| SetupPPMdDecompression | Prepares PPMd decompression using the specified Stream and compression level. |
| WillUseCompression | Determines whether a compression format will be used, based on a specified compression method and level. |
| Write | Overridden. Compresses and writes a sequence of bytes to the inner stream. |
| WriteAsync | Overloaded. Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. (Inherited from System.IO.Stream) |
| WriteByte | Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from System.IO.Stream) |
Top
See Also