コード例 #1
0
ファイル: MyCommand.cs プロジェクト: selway/SerialHandler
 /// <summary>
 /// Get the full-bytes of command.
 /// </summary>
 /// <returns></returns>
 public byte[] GetCommandBytes()
 {
     return(BytesHelper.Concat(new byte[] { Head, TransType, Key, DataLength }, Data, new[] { Tail }));
 }