codec

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHead

type IHead interface {
	Encode() []byte
	Decode([]byte) error
	String() string
}

type Pdu added in v0.4.1

type Pdu interface {
	Encode() []byte
	Decode(header IHead, frame []byte) error
	String() string
}

type RequestPdu

type RequestPdu interface {
	Pdu
	ToResponse(code uint32) interface{}
}

type Sequence32

type Sequence32 interface {
	NextVal() int32
}

Sequence32 32位序号生成器

type Sequence64

type Sequence64 interface {
	NextVal() int64
}

Sequence64 64位序号生成器

type SequenceBCD

type SequenceBCD interface {
	NextVal() []byte
}

SequenceBCD BCD码序号生成器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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