codec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAddress

func DecodeAddress(b []byte) (address.Address, bool, error)

func DecodeAgentID

func DecodeAgentID(b []byte) (coretypes.AgentID, bool, error)

func DecodeChainID

func DecodeChainID(b []byte) (coretypes.ChainID, bool, error)

func DecodeColor

func DecodeColor(b []byte) (balance.Color, bool, error)

func DecodeContractID

func DecodeContractID(b []byte) (coretypes.ContractID, bool, error)

func DecodeHashValue

func DecodeHashValue(b []byte) (hashing.HashValue, bool, error)

func DecodeHname

func DecodeHname(b []byte) (coretypes.Hname, bool, error)

func DecodeInt64

func DecodeInt64(b []byte) (int64, bool, error)

func DecodeString

func DecodeString(b []byte) (string, bool, error)

func Encode

func Encode(v interface{}) []byte

func EncodeAddress

func EncodeAddress(value address.Address) []byte

func EncodeAgentID

func EncodeAgentID(value coretypes.AgentID) []byte

func EncodeChainID

func EncodeChainID(value coretypes.ChainID) []byte

func EncodeColor

func EncodeColor(value balance.Color) []byte

func EncodeContractID

func EncodeContractID(value coretypes.ContractID) []byte

func EncodeHashValue

func EncodeHashValue(value hashing.HashValue) []byte

func EncodeHname

func EncodeHname(value coretypes.Hname) []byte

func EncodeInt64

func EncodeInt64(value int64) []byte

func EncodeString

func EncodeString(value string) []byte

func MakeDict

func MakeDict(vars map[string]interface{}) dict.Dict

Types

This section is empty.

Jump to

Keyboard shortcuts

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