msgpack

package module
v0.0.0-...-f00073e Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct{}

Codec implements the KVCodec interface using MessagePack encoding.

func New

func New() *Codec

New creates a new MessagePack codec.

func (*Codec) DecodeTuple

func (c *Codec) DecodeTuple(key, value []byte) (*core.Tuple, error)

DecodeTuple decodes a key-value pair to a core.Tuple.

func (*Codec) DecodeURI

func (c *Codec) DecodeURI(data []byte) (*core.URI, error)

DecodeURI decodes a []byte to a core.URI.

func (*Codec) DecodeValue

func (c *Codec) DecodeValue(data []byte) (*core.Value, error)

DecodeValue decodes a []byte to a core.Value.

func (*Codec) EncodeTuple

func (c *Codec) EncodeTuple(tuple *core.Tuple) ([]byte, []byte, error)

EncodeTuple encodes a core.Tuple to key-value pair.

func (*Codec) EncodeURI

func (c *Codec) EncodeURI(uri *core.URI) ([]byte, error)

EncodeURI encodes a core.URI to []byte.

func (*Codec) EncodeValue

func (c *Codec) EncodeValue(value *core.Value) ([]byte, error)

EncodeValue encodes a core.Value to []byte.

Jump to

Keyboard shortcuts

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