码迷,mamicode.com
首页 > 其他好文 > 详细

Array.Copy

时间:2014-07-10 12:41:16      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:style   http   color   new   .net   res   

var bt = new byte[] { 0x03, 0x00, 0x01, 0xD9, 0x23 };
               var result = new byte[] { 0x01, 0x00, 0x03, 0x00, 0xFC };
               var tmp = new byte[5];
               _sp.Write(bt, 0, bt.Length);
               Thread.Sleep(500);
               var recive = new byte[_sp.BytesToRead];
               _sp.Read(recive, 0, _sp.BytesToRead);
               Array.Copy(recive, 6, tmp, 0, 5);
               return CompareArray(tmp, result);

Array.Copy,布布扣,bubuko.com

Array.Copy

标签:style   http   color   new   .net   res   

原文地址:http://www.cnblogs.com/zhangwei595806165/p/3811927.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!