HslHelperCalculateOccupyLength 方法 |
根据位偏移的地址,长度信息,计算出实际的地址占用长度
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static int CalculateOccupyLength(
int address,
int length,
int hex = 8
)
Public Shared Function CalculateOccupyLength (
address As Integer,
length As Integer,
Optional hex As Integer = 8
) As Integer
public:
static int CalculateOccupyLength(
int address,
int length,
int hex = 8
)
static member CalculateOccupyLength :
address : int *
length : int *
?hex : int
(* Defaults:
let _hex = defaultArg hex 8
*)
-> int
参数
- address
- 类型:SystemInt32
偏移地址 - length
- 类型:SystemInt32
长度信息 - hex (Optional)
- 类型:SystemInt32
地址的进制信息,一般为8 或是 16
返回值
类型:
Int32占用的地址长度信息
参见