codec

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Codec = amino.NewCodec()

Codec is a general codec where every data structs needs to register to

Functions

func MarshalBinaryBare

func MarshalBinaryBare(o interface{}) ([]byte, error)

MarshalBinaryBare https://godoc.org/github.com/tendermint/go-amino#Codec.MarshalBinaryBare

func MarshalJSON

func MarshalJSON(o interface{}) ([]byte, error)

MarshalJSON https://godoc.org/github.com/tendermint/go-amino#Codec.MarshalJSON

func MustMarshalJSON

func MustMarshalJSON(o interface{}) []byte

MustMarshalJSON https://godoc.org/github.com/tendermint/go-amino#Codec.MustMarshalJSON

func RegisterConcrete

func RegisterConcrete(o interface{}, name string, copts *amino.ConcreteOptions)

RegisterConcrete https://godoc.org/github.com/tendermint/go-amino#Codec.RegisterConcrete

func RegisterInterface

func RegisterInterface(ptr interface{}, iopts *amino.InterfaceOptions)

RegisterInterface https://godoc.org/github.com/tendermint/go-amino#Codec.RegisterInterface

func UnmarshalBinaryBare

func UnmarshalBinaryBare(bz []byte, ptr interface{}) error

UnmarshalBinaryBare https://godoc.org/github.com/tendermint/go-amino#Codec.UnmarshalBinaryBare

func UnmarshalJSON

func UnmarshalJSON(bz []byte, ptr interface{}) error

UnmarshalJSON https://godoc.org/github.com/tendermint/go-amino#Codec.UnmarshalJSON

Types

This section is empty.

Jump to

Keyboard shortcuts

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