コード例 #1
0
ファイル: MBAP.cs プロジェクト: JosephMartell/ModbusTCP
 public byte[] GetBytes()
 {
     return(new byte[] { 0x00, 0x00, 0x00, 0x00, _length.HighByte(), _length.LowByte(), UnitID });
 }
コード例 #2
0
 public static byte[] GetBytes(this Int16 i)
 {
     return(new byte[] { i.HighByte(), i.LowByte() });
 }