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

ChannelDataMessage

Represents SSH_MSG_CHANNEL_DATA message.
public byte[] Data { get; }

Gets or sets message data.

public int Offset { get; set; }

Gets the zero-based offset in Data at which the data begins.

public int Size { get; set; }

Gets the number of bytes of Data to read or write.

Initializes a new instance of the ChannelDataMessage class.

public ChannelDataMessage(uint localChannelNumber, byte[] data)

Initializes a new instance of the ChannelDataMessage class.

public ChannelDataMessage(uint localChannelNumber, byte[] data, int offset, int size)

Initializes a new instance of the ChannelDataMessage class.