| 53 | const HEADER_SIZE = 5 |
| 54 | |
| 55 | type 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 | |
| 64 | func NewHTLVCRCDecoder() ziface.IDecoder { |
| 65 | return &HtlvCrcDecoder{} |
nothing calls this directly
no outgoing calls
no test coverage detected