Class ThrowOnDisposedStream
Implements
Inherited Members
Namespace: PvpXray
Assembly: solution.dll
Syntax
public sealed class ThrowOnDisposedStream : Stream, IDisposable
Constructors
Name | Description |
---|---|
Throw |
Properties
Name | Description |
---|---|
Can |
When overridden in a derived class, gets a value indicating whether the current stream supports reading. |
Can |
When overridden in a derived class, gets a value indicating whether the current stream supports seeking. |
Can |
When overridden in a derived class, gets a value indicating whether the current stream supports writing. |
Length | When overridden in a derived class, gets the length in bytes of the stream. |
Position | When overridden in a derived class, gets or sets the position within the current stream. |
Methods
Name | Description |
---|---|
Copy |
Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token. |
Dispose(bool) | Releases the unmanaged resources used by the Stream and optionally releases the managed resources. |
Flush() | When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
Read(byte[], int, int) | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. |
Read |
Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. |
Read |
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. |
Seek(long, Seek |
When overridden in a derived class, sets the position within the current stream. |
Set |
When overridden in a derived class, sets the length of the current stream. |
Write(byte[], int, int) | When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. |
Write |
Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. |
Write |
Writes a byte to the current position in the stream and advances the position within the stream by one byte. |