C# Класс Rebex.IO.Compression.ZlibInputStream

Provides a readable stream that uses ZLIB algorithm to either compresses or decompresses data read from an underlying stream.
Наследование: Stream
Показать файл Открыть проект

Открытые методы

Метод Описание
Flush ( ) : void

This ZlibInputStream class implementation of this method does nothing.

Read ( byte buffer, int offset, int count ) : int

Reads data from the underlying stream, compressing or decompressing them during the process.

Seek ( long offset, SeekOrigin origin ) : long

This method is not supported by the ZlibInputStream class.

The new position within the current stream.

SetLength ( long value ) : void

This method is not supported by the ZlibInputStream class.

Write ( byte buffer, int offset, int count ) : void

This method is not supported by the ZlibInputStream class.

ZlibInputStream ( Stream input, CompressionMode mode ) : System

Creates a new instance of ZlibInputStream class.

ZlibInputStream ( Stream input, CompressionMode mode, int level ) : System

Creates a new instance of ZlibInputStream class.

ZlibInputStream ( Stream input, bool compress, int level ) : System

Creates a new instance of ZlibInputStream class.

Описание методов

Flush() публичный Метод

This ZlibInputStream class implementation of this method does nothing.
public Flush ( ) : void
Результат void

Read() публичный Метод

Reads data from the underlying stream, compressing or decompressing them during the process.
public Read ( byte buffer, int offset, int count ) : int
buffer byte An array of bytes. This method reads count bytes from the underlying stream and copies them into the buffer.
offset int The zero-based byte offset in buffer to which to copy bytes read from the current stream.
count int The maximum number of bytes to be read from the current stream.
Результат int

Seek() публичный Метод

This method is not supported by the ZlibInputStream class.
The new position within the current stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long A byte offset relative to the origin parameter.
origin SeekOrigin A value of type System.IO.SeekOrigin indicating the reference point used to obtain the new position.
Результат long

SetLength() публичный Метод

This method is not supported by the ZlibInputStream class.
public SetLength ( long value ) : void
value long The desired length of the current stream in bytes.
Результат void

Write() публичный Метод

This method is not supported by the ZlibInputStream class.
public Write ( byte buffer, int offset, int count ) : void
buffer byte An array of bytes. This method writes count bytes from buffer to the current stream.
offset int The zero-based byte offset in buffer at which to begin writing bytes to the current stream.
count int The number of bytes to be written to the current stream.
Результат void

ZlibInputStream() публичный Метод

Creates a new instance of ZlibInputStream class.
public ZlibInputStream ( Stream input, CompressionMode mode ) : System
input Stream Underlying stream from which to read the data to process.
mode CompressionMode Specifies whether to compress or decompress data read from the stream.
Результат System

ZlibInputStream() публичный Метод

Creates a new instance of ZlibInputStream class.
public ZlibInputStream ( Stream input, CompressionMode mode, int level ) : System
input Stream Underlying stream from which to read the data to process.
mode CompressionMode Specifies whether to compress or decompress data read from the stream.
level int Compression level. Only used when compressing data.
Результат System

ZlibInputStream() публичный Метод

Creates a new instance of ZlibInputStream class.
public ZlibInputStream ( Stream input, bool compress, int level ) : System
input Stream Underlying stream from which to read the data to process.
compress bool True to compress, false to decompress data read from the stream.
level int Compression level. Only used when compressing data.
Результат System