Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.Streams.DoNotCloseStream

Summary

Passes through every operation to the underlying stream. When disposed, leaves the underlying stream alone instead of closing it. Intended for use with certain streams which do not have the "do not close the underlying stream" option built-in, such as the CryptoStream for example.

Constructors

DoNotCloseStream(Stream underlyingStream)
Constructor.

Instance methods

void
  • Overrides: Stream.Flush()
Passes through this operation to the underlying stream.
int
Read(byte[] buffer, int offset, int count)
  • Overrides: Stream.Read(byte[], int, int)
long
Seek(long offset, SeekOrigin origin)
  • Overrides: Stream.Seek(long, SeekOrigin)
void
SetLength(long value)
  • Overrides: Stream.SetLength(long)
void
Write(byte[] buffer, int offset, int count)
  • Overrides: Stream.Write(byte[], int, int)

Instance properties

bool
  • Overrides: Stream.CanRead
Passes through this operation to the underlying stream.
bool
  • Overrides: Stream.CanSeek
bool
  • Overrides: Stream.CanWrite
long
  • Overrides: Stream.Length
long
  • Overrides: Stream.Position