Improve SetLength compatibility with FileStream: * Flush any buffers before epand or shrink the stream. * If the specified value is less than the current length of the stream, the current position is moved to the last byte of the stream.
Improve SetLength compatibility with FileStream:
* Flush any buffers before epand or shrink the stream.
* If the specified value is less than the current length of the stream, the current position is moved to the last byte of the stream.

Bloomcredit/SSH.NET,sshnet/SSH.NET