internal void SendMessage(SftpMessage sftpMessage) { #if TUNING var data = sftpMessage.GetBytes(); #else var messageData = sftpMessage.GetBytes(); var data = new byte[4 + messageData.Length]; ((uint)messageData.Length).GetBytes().CopyTo(data, 0); messageData.CopyTo(data, 4); #endif SendData(data); }
internal void SendMessage(SftpMessage sftpMessage) { var messageData = sftpMessage.GetBytes(); var data = new byte[4 + messageData.Length]; ((uint)messageData.Length).GetBytes().CopyTo(data, 0); messageData.CopyTo(data, 4); this.SendData(data); }
public SftpDataMessage(uint localChannelNumber, SftpMessage sftpMessage) { this.LocalChannelNumber = localChannelNumber; var messageData = sftpMessage.GetBytes(); var data = new byte[4 + messageData.Length]; ((uint)messageData.Length).GetBytes().CopyTo(data, 0); messageData.CopyTo(data, 4); this.Data = data; }
internal void SendMessage(SftpMessage sftpMessage) { var data = sftpMessage.GetBytes(); SendData(data); }