MCPcopy
hub / github.com/aceld/zinx / HtlvCrcDecoder

Struct HtlvCrcDecoder

zdecoder/htlvcrcdecoder.go:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53const HEADER_SIZE = 5
54
55type HtlvCrcDecoder struct {
56 Head byte //HeaderCode(头码)
57 Funcode byte //FunctionCode(功能码)
58 Length byte //DataLength(数据长度)
59 Body []byte //BodyData(数据内容)
60 Crc []byte //CRC校验
61 Data []byte //// Original data content(原始数据内容)
62}
63
64func NewHTLVCRCDecoder() ziface.IDecoder {
65 return &HtlvCrcDecoder{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected