SoftBasicByteToBoolArray 方法 (Byte, Int32) |
命名空间: HslCommunication.BasicFramework
byte[] buffer = new byte[2] { 0xB9, 0x28 }; bool[] result = SoftBasic.ByteToBoolArray( buffer, 15 ); // 结果如下 // result = new bool[] { true, false, false, true, true, true, false, true, false, false, false, true, false, true, false }; bool[] result2 = SoftBasic.ByteToBoolArray( buffer ); // 结果如下 // result2 = new bool[] { true, false, false, true, true, true, false, true, false, false, false, true, false, true, false, false };