Метод | Описание | |
---|---|---|
Flush ( ) : void |
Flush the stream.
|
|
Read ( byte buffer, int offset, int count ) : int |
Read data from the stream. If you wish to use the ZlibStream to compress data while reading, you can create a ZlibStream with CompressionMode.Compress, providing an uncompressed data stream. Then call Read() on that ZlibStream, and the data read will be compressed. If you wish to use the ZlibStream to decompress data while reading, you can create a ZlibStream with CompressionMode.Decompress, providing a readable compressed data stream. Then call Read() on that ZlibStream, and the data will be decompressed as it is read. A ZlibStream can be used for Read() or Write(), but not both. |
|
Seek ( long offset, System origin ) : long |
Calling this method always throws a NotImplementedException.
|
|
SetLength ( long value ) : void |
Calling this method always throws a NotImplementedException.
|
|
UncompressBuffer ( byte compressed ) : byte[] |
Uncompress a byte array into a byte array.
|
|
UncompressString ( byte compressed ) : String |
Uncompress a byte array into a single string.
|
|
Write ( byte buffer, int offset, int count ) : void |
Write data to the stream. If you wish to use the ZlibStream to compress data while writing, you can create a ZlibStream with CompressionMode.Compress, and a writable output stream. Then call Write() on that ZlibStream, providing uncompressed data as input. The data sent to the output stream will be the compressed form of the data written. If you wish to use the ZlibStream to decompress data while writing, you can create a ZlibStream with CompressionMode.Decompress, and a writable output stream. Then call Write() on that stream, providing previously compressed data. The data sent to the output stream will be the decompressed form of the data written. A ZlibStream can be used for Read() or Write(), but not both. |
|
ZlibStream ( System stream ) : System |
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Dispose the stream. This may or may not result in a Close() call on the captive stream. See the constructors that have a leaveOpen parameter for more information. |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The buffer into which the read data should be placed. |
offset | int | the offset within that data array to put the first byte read. |
count | int | the number of bytes to read. |
Результат | int |
public Seek ( long offset, System origin ) : long | ||
offset | long | |
origin | System | |
Результат | long |
public static UncompressBuffer ( byte compressed ) : byte[] | ||
compressed | byte | /// A buffer containing ZLIB-compressed data. /// |
Результат | byte[] |
public static UncompressString ( byte compressed ) : String | ||
compressed | byte | /// A buffer containing ZLIB-compressed data. /// |
Результат | String |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The buffer holding data to write to the stream. |
offset | int | the offset within that data array to find the first byte to write. |
count | int | the number of bytes to write. |
Результат | void |
public ZlibStream ( System stream ) : System | ||
stream | System | |
Результат | System |