private void SendData(ChannelSession channel, byte[] buffer, int length)
 {
     if (length == buffer.Length)
     {
         channel.SendData(buffer);
     }
     else
     {
         channel.SendData(buffer.Take(length).ToArray());
     }
 }
 private void SendData(ChannelSession channel, byte[] buffer)
 {
     channel.SendData(buffer);
 }
 partial void SendData(ChannelSession channel, string command)
 {
     channel.SendData(System.Text.Encoding.Default.GetBytes(command));
 }