Lua 规范
字节校验

字节校验

XOR

misc:CRC(data, t) 用户将数据进行 XOR 校验。

参数

参数名类型描述
datastring要校验的数据
tint奇偶校验

返回值

类型描述
string返回校验结果

示例

Lua
misc:XOR("0101")

CRC

misc:CRC(data, t) 用户将数据进行 XOR 校验。

参数

参数名类型描述
datastring要校验的数据
tint奇偶校验

返回值

类型描述
string返回校验结果

示例

Lua
misc:CRC("0101")
© 2023-2025 RHILEX Technologies Inc. All rights reserved.