frame

package
v0.0.0-...-bda8275 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderLen        = 4                  // bytes
	MaxPayloadLength = 1024 * 1024 * 1024 // 1GB
)

Variables

View Source
var (
	ErrPayloadLengthOverflow = errors.New("payload length overflows")
)

Functions

This section is empty.

Types

type Codec

type Codec struct {
	// contains filtered or unexported fields
}

func NewCodec

func NewCodec(src *sonic.ByteBuffer) *Codec

func (*Codec) Decode

func (c *Codec) Decode(src *sonic.ByteBuffer) ([]byte, error)

func (*Codec) Encode

func (c *Codec) Encode(frame []byte, dst *sonic.ByteBuffer) error

Jump to

Keyboard shortcuts

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