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

ChannelDataMessage

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

Gets the message data.

public int Offset { get; }

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

public int Size { get; }

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.