| IByteTransformTransBool 方法 (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 中) 版本:12.5.1.0 (12.5.1.0)
 语法
语法bool[] TransBool(
	byte[] buffer,
	int index,
	int length
)
Function TransBool ( 
	buffer As Byte(),
	index As Integer,
	length As Integer
) As Boolean()
array<bool>^ TransBool(
	array<unsigned char>^ buffer, 
	int index, 
	int length
)
abstract TransBool : 
        buffer : byte[] * 
        index : int * 
        length : int -> bool[] 
参数
- buffer
- 类型:SystemByte
 缓存数据
- index
- 类型:SystemInt32
 位的起始索引,需要传入想要提取的位索引,注意:是从0开始的位索引,10则表示 buffer[1] 的第二位
- length
- 类型:SystemInt32
 读取的 bool 长度,按照位为单位,传入 10 则表示获取 10 个长度的 bool[]
返回值
类型:
Booleanbool数组
 参见
参见