<PackageReference Include="SSH.NET" Version="2020.0.2" />

Renci.SshNet.Common.SshDataStream

public class SshDataStream : MemoryStream
Specialized MemoryStream for reading and writing data SSH data.
namespace Renci.SshNet.Common { public class SshDataStream : MemoryStream { public bool IsEndOfData { get; } public SshDataStream(int capacity); public SshDataStream(byte[] buffer); public SshDataStream(byte[] buffer, int offset, int count); public void Write(uint value); public void Write(ulong value); public void Write(BigInteger data); public void Write(byte[] data); public byte[] ReadBinary(); public void WriteBinary(byte[] buffer); public void WriteBinary(byte[] buffer, int offset, int count); public void Write(string s, Encoding encoding); public BigInteger ReadBigInt(); public uint ReadUInt32(); public ulong ReadUInt64(); public string ReadString(Encoding encoding); } }