coder

package
v3.3.6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMessageTruncated      = errors.New("message is truncated")
	ErrMessageInvalidVersion = errors.New("message has invalid version")
)
View Source
var DefaultCoder = new(Coder)

Functions

This section is empty.

Types

type Coder

type Coder struct{}

func (*Coder) Decode

func (c *Coder) Decode(data []byte, m *message.Message) (int, error)

func (*Coder) Encode

func (c *Coder) Encode(m message.Message, buf []byte) (int, error)

func (*Coder) Size

func (c *Coder) Size(m message.Message) (int, error)

Jump to

Keyboard shortcuts

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