Renci.SshNet.Common.SshData
Base ssh data serialization type
namespace Renci.SshNet.Common
{
public abstract class SshData
{
protected SshDataStream DataStream { get; }
protected bool IsEndOfData { get; }
protected virtual int BufferCapacity { get; }
public byte[] GetBytes();
protected virtual void WriteBytes(SshDataStream stream);
public void Load(byte[] data);
public void Load(byte[] data, int offset, int count);
protected abstract void LoadData();
protected abstract void SaveData();
protected byte[] ReadBytes();
protected byte[] ReadBytes(int length);
protected byte ReadByte();
protected bool ReadBoolean();
protected ushort ReadUInt16();
protected uint ReadUInt32();
protected ulong ReadUInt64();
protected string ReadString(Encoding encoding);
protected byte[] ReadBinary();
protected string[] ReadNamesList();
protected IDictionary<string, string> ReadExtensionPair();
protected void Write(byte[] data);
protected void Write(byte[] buffer, int offset, int count);
protected void Write(byte data);
protected void Write(bool data);
protected void Write(uint data);
protected void Write(ulong data);
protected void Write(string data);
protected void Write(string data, Encoding encoding);
protected void WriteBinaryString(byte[] buffer);
protected void WriteBinary(byte[] buffer, int offset, int count);
protected void Write(BigInteger data);
protected void Write(string[] data);
protected void Write(IDictionary<string, string> data);
protected SshData();
}
}