/// When overridden in a derived class, gets a value indicating whether the current stream supports reading.
/// </summary>
/// <value><c>true</c> if this instance can read; otherwise, <c>false</c>.</value>
/// <returns>true if the stream supports reading; otherwise, false.</returns>
publicoverrideboolCanRead
{
get{returnBaseStream.CanRead;}
}
/// <summary>
/// When overridden in a derived class, gets a value indicating whether the current stream supports seeking.
/// </summary>
/// <value><c>true</c> if this instance can seek; otherwise, <c>false</c>.</value>
/// <returns>true if the stream supports seeking; otherwise, false.</returns>
publicoverrideboolCanSeek
{
get{returnBaseStream.CanSeek;}
}
/// <summary>
/// When overridden in a derived class, gets a value indicating whether the current stream supports writing.
/// </summary>
/// <value><c>true</c> if this instance can write; otherwise, <c>false</c>.</value>
/// <returns>true if the stream supports writing; otherwise, false.</returns>
publicoverrideboolCanWrite
{
get{returnBaseStream.CanWrite;}
}
/// <summary>
/// When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
/// </summary>
publicoverridevoidFlush()
{
BaseStream.Flush();
}
/// <summary>
/// When overridden in a derived class, gets the length in bytes of the stream.
/// </summary>
/// <value>The length.</value>
/// <returns>A long value representing the length of the stream in bytes.</returns>
publicoverridelongLength
{
get{returnBaseStream.Length;}
}
/// <summary>
/// When overridden in a derived class, gets or sets the position within the current stream.
/// </summary>
/// <value>The position.</value>
/// <returns>The current position within the stream.</returns>
publicoverridelongPosition
{
get{returnBaseStream.Position;}
set
{
BaseStream.Position=value;
}
}
/// <summary>
/// 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.
/// </summary>
/// <param name="buffer">An array of bytes. When this method returns, the buffer contains the specified byte array with the values between <paramref name="offset" /> and (<paramref name="offset" /> + <paramref name="count" /> - 1) replaced by the bytes read from the current source.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> at which to begin storing the data read from the current stream.</param>
/// <param name="count">The maximum number of bytes to be read from the current stream.</param>
/// <returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.</returns>
/// When overridden in a derived class, sets the length of the current stream.
/// </summary>
/// <param name="value">The desired length of the current stream in bytes.</param>
publicoverridevoidSetLength(longvalue)
{
BaseStream.SetLength(value);
}
/// <summary>
/// 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.
/// </summary>
/// <param name="buffer">An array of bytes. This method copies <paramref name="count" /> bytes from <paramref name="buffer" /> to the current stream.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> at which to begin copying bytes to the current stream.</param>
/// <param name="count">The number of bytes to be written to the current stream.</param>