示例#1
0
 private BufferSlice EncodeCommand(Command command)
 {
     byte[] cmd = Encoding.ASCII.GetBytes(command.BuildCommandString() + "\n\n");
     Console.WriteLine("Sending " + command.BuildCommandString() + "\n\n");
     return new BufferSlice(cmd, 0, cmd.Length);
 }