codec

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0, BSD-2-Clause Imports: 10 Imported by: 5 modules, 4 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

func DecodeAddress

func DecodeAddress(b []byte, def ...ledgerstate.Address) (ledgerstate.Address, error)

func DecodeAgentID

func DecodeAgentID(b []byte, def ...*iscp.AgentID) (*iscp.AgentID, error)

func DecodeChainID

func DecodeChainID(b []byte, def ...*iscp.ChainID) (*iscp.ChainID, error)

func DecodeColor

func DecodeColor(b []byte, def ...colored.Color) (colored.Color, error)

func DecodeHashValue

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

func DecodeHname

func DecodeHname(b []byte, def ...iscp.Hname) (iscp.Hname, error)

func DecodeInt16 added in v0.2.0

func DecodeInt16(b []byte, def ...int16) (int16, error)

func DecodeInt32 added in v0.2.0

func DecodeInt32(b []byte, def ...int32) (int32, error)

func DecodeInt64

func DecodeInt64(b []byte, def ...int64) (int64, error)

func DecodeRequestID added in v0.2.0

func DecodeRequestID(b []byte, def ...iscp.RequestID) (iscp.RequestID, error)

func DecodeString

func DecodeString(b []byte, def ...string) (string, error)

func DecodeTime added in v0.2.0

func DecodeTime(b []byte, def ...time.Time) (time.Time, error)

func DecodeUint16 added in v0.2.0

func DecodeUint16(b []byte, def ...uint16) (uint16, error)

func DecodeUint32 added in v0.2.0

func DecodeUint32(b []byte, def ...uint32) (uint32, error)

func DecodeUint64 added in v0.2.0

func DecodeUint64(b []byte, def ...uint64) (uint64, error)

func Encode

func Encode(v interface{}) []byte

func EncodeAddress

func EncodeAddress(value ledgerstate.Address) []byte

func EncodeAgentID

func EncodeAgentID(value *iscp.AgentID) []byte

func EncodeChainID

func EncodeChainID(value *iscp.ChainID) []byte

func EncodeColor

func EncodeColor(value colored.Color) []byte

func EncodeHashValue

func EncodeHashValue(value hashing.HashValue) []byte

func EncodeHname

func EncodeHname(value iscp.Hname) []byte

func EncodeInt16 added in v0.2.0

func EncodeInt16(value int16) []byte

func EncodeInt32 added in v0.2.0

func EncodeInt32(value int32) []byte

func EncodeInt64

func EncodeInt64(value int64) []byte

func EncodeRequestID added in v0.2.0

func EncodeRequestID(value iscp.RequestID) []byte

func EncodeString

func EncodeString(value string) []byte

func EncodeTime added in v0.2.0

func EncodeTime(value time.Time) []byte

func EncodeUint16 added in v0.2.0

func EncodeUint16(value uint16) []byte

func EncodeUint32 added in v0.2.0

func EncodeUint32(value uint32) []byte

func EncodeUint64 added in v0.2.0

func EncodeUint64(value uint64) []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