Documentation ¶
Index ¶
Constants ¶
View Source
const HEADER_SIZE = 5
View Source
const TLV_HEADER_SIZE = 8 //表示TLV空包长度
Variables ¶
This section is empty.
Functions ¶
func IsComplete ¶
func NewHTLVCRCDecoder ¶
func NewTLVDecoder ¶
Types ¶
type HtlvCrcDecoder ¶
type HtlvCrcDecoder struct { Head byte //头码 Funcode byte //功能码 Length byte //数据长度 Body []byte //数据内容 Crc []byte //CRC校验 Data []byte //数据内容 }
func (*HtlvCrcDecoder) GetLengthField ¶
func (hcd *HtlvCrcDecoder) GetLengthField() *ziface.LengthField
type TLVDecoder ¶
func (*TLVDecoder) GetLengthField ¶
func (this *TLVDecoder) GetLengthField() *ziface.LengthField
Click to show internal directories.
Click to hide internal directories.