codec

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: CC0-1.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 C

type C interface {
	// Marshal data by appending it to the provided destination, and return the
	// resultant slice.
	Marshal(dst []byte) (r []byte, err error)
	// Unmarshal the next expected data element from the provided slice and return
	// the remainder after the expected separator.
	Unmarshal(data []byte) (r []byte, err error)
}

C is an interface for encoding and decoding that allows embedding encoders inside other encoders by the use of append for Marshal and slice for Unmarshal.

Jump to

Keyboard shortcuts

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