Class FastLZStream
FastLZStream class
A stream wrapper that compresses data with FastLZ. Implements decorator pattern.
public class FastLZStream : Stream
Constructors
| Name | Description |
|---|
| FastLZStream(Stream, int) | Initializes a new instance of the FastLZStream class prepared for compression. |
Properties
| Name | Description |
|---|
| override CanRead { get; } | Gets a value indicating whether the current stream supports reading. |
| override CanSeek { get; } | Gets a value indicating whether the current stream supports seeking. |
| override CanWrite { get; } | Gets a value indicating whether the current stream supports writing. |
| override Length { get; } | Gets the length in bytes of the stream. |
| override Position { get; set; } | Gets or sets the position within the current stream. |
Methods
| Name | Description |
|---|
| override Close() | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. |
| override Flush() | Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
| override Read(byte[], int, int) | Reads a sequence of bytes from the stream and advances the position within the stream by the number of bytes read. Not supported. |
| override Seek(long, SeekOrigin) | Sets the position within the current stream. |
| override SetLength(long) | Sets the length of the current stream. |
| override Write(byte[], int, int) | Writes a sequence of bytes to the compressing stream and advances the current position within this stream by the number of bytes written. |
See Also