1 Star 0 Fork 0

风回/go2929

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
t2929_0x3a.go 582 Bytes
一键复制 编辑 原始数据 按行查看 历史
irving.wu 提交于 2025-07-08 11:36 +08:00 . feat: 2929 0x3a
package protocol
import (
"encoding/hex"
)
type T2929_0x3a struct {
Reply []byte
}
func (entity *T2929_0x3a) Encode() ([]byte, error) {
//C4E3BAC321
header, err := hex.DecodeString("29293A0036")
if err != nil {
return nil, err
}
ender, err := hex.DecodeString("690D")
if err != nil {
return nil, err
}
header[4] = byte(len(entity.Reply) + 2)
data := append(header, entity.Reply...)
data = append(data, ender...)
checkSum := GetCheckSum(data)
data[len(data)-2] = checkSum
return data, nil
}
func (entity *T2929_0x3a) Decode(data []byte) error {
return nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/wuzhonghuan/go2929.git
git@gitee.com:wuzhonghuan/go2929.git
wuzhonghuan
go2929
go2929
e7f85d13b3dd

搜索帮助