点击或拖拽改变大小

ByteTransformBaseTransBool 方法 (Byte, Int32, Int32)

从缓存中提取出bool数组结果,需要传入想要提取的位索引,注意:是从0开始的位索引,10则表示 buffer[1] 的第二位。长度为 bool 数量的长度,传入 10 则获取 10 个长度的 bool[] 数组。
To extract the result of the bool array 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]. The length is the length of the number of bools. If you pass in 10, you will get a bool[] array of 10 lengths.

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

参数

buffer
类型:SystemByte
缓存数据
index
类型:SystemInt32
位的起始索引,需要传入想要提取的位索引,注意:是从0开始的位索引,10则表示 buffer[1] 的第二位
length
类型:SystemInt32
读取的 bool 长度,按照位为单位,传入 10 则表示获取 10 个长度的 bool[]

返回值

类型:Boolean
bool数组

实现

IByteTransformTransBool(Byte, Int32, Int32)
参见