test

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaller added in v0.8.0

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

Marshaller marshals and unmarshals messages.

func NewMarshaller added in v0.8.0

func NewMarshaller(capacity uint64) Marshaller

NewMarshaller creates marshaller.

func (Marshaller) Marshal added in v0.8.0

func (m Marshaller) Marshal(msg any, buf []byte) (retID, retSize uint64, retErr error)

Marshal marshals message.

func (Marshaller) Size added in v0.8.0

func (m Marshaller) Size(msg any) (uint64, error)

Size computes the size of marshalled message.

func (Marshaller) Unmarshal added in v0.8.0

func (m Marshaller) Unmarshal(id uint64, buf []byte) (retMsg any, retSize uint64, retErr error)

Unmarshal unmarshals message.

type Message

type Message struct {
	Field string
}

Message is the message used in tests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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