codec

package
v1.2.19 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	EncodeToBytes(val any) ([]byte, error)
	DecodeBytes(data []byte, val interface{}) error
}
var GlobalCodec Codec

type GobCodec

type GobCodec struct{}

func (*GobCodec) DecodeBytes

func (*GobCodec) DecodeBytes(data []byte, val interface{}) error

func (*GobCodec) EncodeToBytes

func (*GobCodec) EncodeToBytes(val interface{}) ([]byte, error)

type RlpCodec

type RlpCodec struct{}

func (*RlpCodec) DecodeBytes

func (*RlpCodec) DecodeBytes(data []byte, val interface{}) error

func (*RlpCodec) EncodeToBytes

func (*RlpCodec) EncodeToBytes(val interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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