HslHelperCalculateStartBitIndexAndLength 方法 |
根据当前的位偏移地址及读取位长度信息,计算出实际的字节索引,字节数,字节位偏移
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static void CalculateStartBitIndexAndLength(
int addressStart,
ushort length,
out int newStart,
out ushort byteLength,
out int offset
)
Public Shared Sub CalculateStartBitIndexAndLength (
addressStart As Integer,
length As UShort,
<OutAttribute> ByRef newStart As Integer,
<OutAttribute> ByRef byteLength As UShort,
<OutAttribute> ByRef offset As Integer
)
public:
static void CalculateStartBitIndexAndLength(
int addressStart,
unsigned short length,
[OutAttribute] int% newStart,
[OutAttribute] unsigned short% byteLength,
[OutAttribute] int% offset
)
static member CalculateStartBitIndexAndLength :
addressStart : int *
length : uint16 *
newStart : int byref *
byteLength : uint16 byref *
offset : int byref -> unit
参数
- addressStart
- 类型:SystemInt32
起始地址 - length
- 类型:SystemUInt16
读取的长度 - newStart
- 类型:SystemInt32
返回的新的字节的索引,仍然按照位单位 - byteLength
- 类型:SystemUInt16
字节长度 - offset
- 类型:SystemInt32
当前偏移的信息
参见