代码:
while (stream8_12.Position < stream8_12.Length)//126
{
var yyyy_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var MM_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var dd_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var hh_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var mm_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var ss_08HTemp = Convert.ToString(stream8_12.ReadByte(), 16);
var sd = Convert.ToString(stream8_12.ReadByte(), 16);
var zt =Convert.ToString(stream8_12.ReadByte(), 2).PadLeft(8, '0');
DataRow tempSix = resultDtListSix_12.NewRow();
tempSix[0] = "20" + statr_yyyy_08H + "-" + statr_MM_08H + "-" + statr_dd_08H + ":" + statr_hh_08H + ":" + statr_mm_08H + ":" + statr_ss_08H;
tempSix[1] = sd;
for (int ss = 0; ss < zt.Length; ss++)
{
tempSix[ss + 2] = zt[ss].ToString() == "0" ? "是" : "否";
}
}
stream8_12 是流
规则
即这样的规则:
1 2 3 4 5 6 ~~~~~~~~~~~~~~~~~~126127 128 129 130 131 132 ~~~~~~~252
253 254 255 256 257 258 259~~~~~~ 504
循环的时候 前面6个只循环一次
添加回答
举报
0/150
提交
取消