Пример #1
0
 /// <summary>
 /// Encodes the specified CMDS.
 /// </summary>
 /// <param name="cmds">The CMDS.</param>
 /// <returns></returns>
 public static string Encode(params IPointCommand[] cmds) => $"{Stream}{PointSerDes.Encode(cmds)}";
Пример #2
0
 /// <summary>
 /// Encodes the specified describe.
 /// </summary>
 /// <param name="describe">if set to <c>true</c> [describe].</param>
 /// <param name="cmds">The CMDS.</param>
 /// <returns></returns>
 public static string Encode(bool describe, params IPointCommand[] cmds) => $"{(describe ? PointSerDes.Describe(Comment, cmds) : null)}{Stream}{PointSerDes.Encode(cmds)}";