/// <summary> /// 放入 bool /// </summary> /// <param name="value">值</param> /// <param name="endian">字节序</param> public void PutBool(bool value, byte length, Endian endian) { WriteData(ByteConverter.BoolToBytes(value, length, endian)); }
/// <summary> /// 以 Little Endian 字节序, 放入 bool /// </summary> /// <param name="value">值</param> /// <param name="length">占用长度</param> public void PutBoolLE(bool value, byte length) { WriteData(ByteConverter.BoolToBytes(value, length, Endian.Little)); }