コード例 #1
0
ファイル: ByteConverter.cs プロジェクト: wade1990/ARMS
 private static void AppendBytes(List <byte> bytes, byteUnion16 u)
 {
     if (BitConverter.IsLittleEndian)
     {
         bytes.Add(u.b0);
         bytes.Add(u.b1);
     }
     else
     {
         bytes.Add(u.b1);
         bytes.Add(u.b0);
     }
 }
コード例 #2
0
ファイル: ByteConverter.cs プロジェクト: helppass/Autopilot
		private static void AppendBytes(byteUnion16 u, byte[] bytes, ref int pos)
		{
			bytes[pos++] = u.b0;
			bytes[pos++] = u.b1;
		}
コード例 #3
0
ファイル: ByteConverter.cs プロジェクト: helppass/Autopilot
		private static void AppendBytes(byteUnion16 u, List<byte> bytes)
		{
			bytes.Add(u.b0);
			bytes.Add(u.b1);
		}