decode

package
v1.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const HEADER_SIZE = 5

Variables

This section is empty.

Functions

func NewHTLVCRCDecoder added in v1.1.3

func NewHTLVCRCDecoder() ziface.IDecoder

Types

type HtlvCrcData

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

func (*HtlvCrcData) GetLengthField added in v1.1.3

func (this *HtlvCrcData) GetLengthField() *ziface.LengthField

func (*HtlvCrcData) Intercept added in v1.1.3

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

type HtlvCrcDecoder

type HtlvCrcDecoder interface {
	ziface.IDecoder
}

Jump to

Keyboard shortcuts

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