codec

package
v2.0.3-0...-26c9a2f Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	// Encode encode message into the out buffer or write directly to the underlying connection.
	Encode(message any, out *buf.ByteBuf, conn io.Writer) error
	// Decode decode message from the bytes buffer, returns false if there is not enough data.
	Decode(in *buf.ByteBuf) (message any, complete bool, err error)
}

Codec message codec, used to encode message to bytes or decode bytes to message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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