点击或拖拽改变大小

HslHelper.CalculateStartBitIndexAndLength 方法

根据当前的位偏移地址及读取位长度信息,计算出实际的字节索引,字节数,字节位偏移

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.3.1.0 (12.3.1.0)
语法
public static void CalculateStartBitIndexAndLength(
	int addressStart,
	ushort length,
	out int newStart,
	out ushort byteLength,
	out int offset
)

参数

addressStart
类型:System.Int32
起始地址
length
类型:System.UInt16
读取的长度
newStart
类型:System.Int32
返回的新的字节的索引,仍然按照位单位
byteLength
类型:System.UInt16
字节长度
offset
类型:System.Int32
当前偏移的信息
参见