decode

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HEADER_SIZE = 5
View Source
const TLV_HEADER_SIZE = 8 //表示TLV空包长度

Variables

This section is empty.

Functions

This section is empty.

Types

type HtlvCrcData

type HtlvCrcData struct {
	Data    []byte //数据内容
	Head    byte   //头码
	Funcode byte   //功能码
	Length  byte   //数据长度
	Body    []byte //数据内容
	Crc     []byte //CRC校验
}

type HtlvCrcDecoder

type HtlvCrcDecoder struct {
}

func (*HtlvCrcDecoder) Intercept

func (this *HtlvCrcDecoder) Intercept(chain ziface.Chain) ziface.Response

type TLVDecoder

type TLVDecoder struct {
}

func (*TLVDecoder) Intercept

func (this *TLVDecoder) Intercept(chain ziface.Chain) ziface.Response

type TlvData

type TlvData struct {
	Tag    uint32
	Length uint32
	Value  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL