点击或拖拽改变大小

IByteTransformTransBool 方法 (Byte, Int32)

从缓存中提取出bool结果,需要传入想要提取的位索引,注意:是从0开始的位索引,10则表示 buffer[1] 的第二位。
To extract the bool result from the cache, you need to pass in the bit index you want to extract. Note: the bit index starts from 0, and 10 represents the second bit of buffer[1].

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
bool TransBool(
	byte[] buffer,
	int index
)

参数

buffer
类型:SystemByte
等待提取的缓存数据
index
类型:SystemInt32
位的索引,注意:是从0开始的位索引,10则表示 buffer[1] 的第二位。

返回值

类型:Boolean
表示不是 true 就是 false 的 bool 数据
参见