gobc

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GobCodec

type GobCodec[K any, V any] struct{}

func NewGobCodec

func NewGobCodec[K any, V any]() *GobCodec[K, V]

func (*GobCodec[K, V]) DecodeKey

func (c *GobCodec[K, V]) DecodeKey(data []byte) (k K, err error)

DecodeKey gob decode key

func (*GobCodec[K, V]) DecodeVal

func (c *GobCodec[K, V]) DecodeVal(data []byte) (v V, err error)

DecodeVal gob decode value

func (*GobCodec[K, V]) EncodeKey

func (c *GobCodec[K, V]) EncodeKey(data K) (k []byte, err error)

func (*GobCodec[K, V]) EncodeVal

func (c *GobCodec[K, V]) EncodeVal(data V) (v []byte, err error)

EncodeVal gob encode value

Jump to

Keyboard shortcuts

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