<PackageReference Include="SSH.NET" Version="2014.4.6-beta2" />

SshData

public abstract class SshData
Base ssh data serialization type
public bool IsEndOfData { get; }

Gets a value indicating whether all data from the buffer has been read.

protected virtual int ZeroReaderIndex { get; }

Gets the index that represents zero in current data type.

protected SshData()

public virtual byte[] GetBytes()

Gets data bytes array

public void Load(byte[] value)

Loads data from specified bytes.

protected void LoadBytes(byte[] bytes)

Loads data bytes into internal buffer.

protected abstract void LoadData()

Called when type specific data need to be loaded.

protected string ReadAsciiString()

Reads next string data type from internal buffer.

protected BigInteger ReadBigInt()

Reads next mpint data type from internal buffer.

protected byte[] ReadBinaryString()

Reads next string data type from internal buffer.

protected bool ReadBoolean()

Reads next boolean data type from internal buffer.

protected byte ReadByte()

Reads next byte data type from internal buffer.

protected byte[] ReadBytes()

Reads all data left in internal buffer at current position.

protected byte[] ReadBytes(int length)

Reads next specified number of bytes data type from internal buffer.

protected IDictionary<string, string> ReadExtensionPair()

Reads next extension-pair data type from internal buffer.

protected long ReadInt64()

Reads next int64 data type from internal buffer.

protected string[] ReadNamesList()

Reads next name-list data type from internal buffer.

protected string ReadString()

Reads next string data type from internal buffer.

protected string ReadString(Encoding encoding)

Reads next string data type from internal buffer.

protected ushort ReadUInt16()

Reads next uint16 data type from internal buffer.

protected uint ReadUInt32()

Reads next uint32 data type from internal buffer.

protected ulong ReadUInt64()

Reads next uint64 data type from internal buffer.

protected void ResetReader()

Resets internal data reader index.

protected abstract void SaveData()

Called when type specific data need to be saved.

protected void Write(IEnumerable<byte> data)

Writes bytes array data into internal buffer.

protected void Write(byte data)

Writes byte data into internal buffer.

protected void Write(bool data)

Writes boolean data into internal buffer.

protected void Write(ushort data)

Writes uint16 data into internal buffer.

protected void Write(uint data)

Writes uint32 data into internal buffer.

protected void Write(ulong data)

Writes uint64 data into internal buffer.

protected void Write(long data)

Writes int64 data into internal buffer.

protected void Write(string data)

Writes string data into internal buffer using default encoding.

protected void Write(string data, Encoding encoding)

Writes string data into internal buffer using the specified encoding.

protected void Write(BigInteger data)

Writes mpint data into internal buffer.

protected void Write(string[] data)

Writes name-list data into internal buffer.

protected void Write(IDictionary<string, string> data)

Writes extension-pair data into internal buffer.

protected void WriteAscii(string data)

Writes string data into internal buffer as ASCII.

protected void WriteBinaryString(byte[] data)

Writes string data into internal buffer.