Versions in this module Expand all Collapse all v0 v0.0.1 Jun 7, 2021 Changes in this version + const DisambBytesLen + const DisfixBytesLen + const PrefixBytesLen + const Typ3_4Byte + const Typ3_8Byte + const Typ3_ByteLength + const Typ3_Varint + const Version + var ErrOverflowInt = errors.New("encoded integer value overflows int(32)") + func ByteSliceSize(bz []byte) int + func DecodeBool(bz []byte) (b bool, n int, err error) + func DecodeByte(bz []byte) (b byte, n int, err error) + func DecodeByteSlice(bz []byte) (bz2 []byte, n int, err error) + func DecodeDisambPrefixBytes(bz []byte) (db DisambBytes, hasDb bool, pb PrefixBytes, hasPb bool, n int, err error) + func DecodeFloat32(bz []byte) (f float32, n int, err error) + func DecodeFloat64(bz []byte) (f float64, n int, err error) + func DecodeInt16(bz []byte) (i int16, n int, err error) + func DecodeInt32(bz []byte) (i int32, n int, err error) + func DecodeInt64(bz []byte) (i int64, n int, err error) + func DecodeInt8(bz []byte) (i int8, n int, err error) + func DecodeString(bz []byte) (s string, n int, err error) + func DecodeTime(bz []byte) (t time.Time, n int, err error) + func DecodeUint16(bz []byte) (u uint16, n int, err error) + func DecodeUint32(bz []byte) (u uint32, n int, err error) + func DecodeUint64(bz []byte) (u uint64, n int, err error) + func DecodeUint8(bz []byte) (u uint8, n int, err error) + func DecodeUvarint(bz []byte) (u uint64, n int, err error) + func DecodeVarint(bz []byte) (i int64, n int, err error) + func DeepCopy(o interface{}) (r interface{}) + func EncodeBool(w io.Writer, b bool) (err error) + func EncodeByte(w io.Writer, b byte) (err error) + func EncodeByteSlice(w io.Writer, bz []byte) (err error) + func EncodeFloat32(w io.Writer, f float32) (err error) + func EncodeFloat64(w io.Writer, f float64) (err error) + func EncodeInt16(w io.Writer, i int16) (err error) + func EncodeInt32(w io.Writer, i int32) (err error) + func EncodeInt64(w io.Writer, i int64) (err error) + func EncodeInt8(w io.Writer, i int8) (err error) + func EncodeString(w io.Writer, s string) (err error) + func EncodeTime(w io.Writer, t time.Time) (err error) + func EncodeUint16(w io.Writer, u uint16) (err error) + func EncodeUint32(w io.Writer, u uint32) (err error) + func EncodeUint64(w io.Writer, u uint64) (err error) + func EncodeUint8(w io.Writer, u uint8) (err error) + func EncodeUvarint(w io.Writer, u uint64) (err error) + func EncodeVarint(w io.Writer, i int64) (err error) + func MarshalBinaryBare(o interface{}) ([]byte, error) + func MarshalBinaryLengthPrefixed(o interface{}) ([]byte, error) + func MarshalBinaryLengthPrefixedWriter(w io.Writer, o interface{}) (n int64, err error) + func MarshalJSON(o interface{}) ([]byte, error) + func MarshalJSONIndent(o interface{}, prefix, indent string) ([]byte, error) + func MustMarshalBinaryBare(o interface{}) []byte + func MustMarshalBinaryLengthPrefixed(o interface{}) []byte + func MustUnmarshalBinaryBare(bz []byte, ptr interface{}) + func MustUnmarshalBinaryLengthPrefixed(bz []byte, ptr interface{}) + func NameToDisfix(name string) (db DisambBytes, pb PrefixBytes) + func UnmarshalBinaryBare(bz []byte, ptr interface{}) error + func UnmarshalBinaryLengthPrefixed(bz []byte, ptr interface{}) error + func UnmarshalBinaryLengthPrefixedReader(r io.Reader, ptr interface{}, maxSize int64) (n int64, err error) + func UnmarshalJSON(bz []byte, ptr interface{}) error + func UvarintSize(u uint64) int + func VarintSize(i int64) int + type Codec struct + func NewCodec() *Codec + func (cdc *Codec) MarshalBinaryBare(o interface{}) ([]byte, error) + func (cdc *Codec) MarshalBinaryLengthPrefixed(o interface{}) ([]byte, error) + func (cdc *Codec) MarshalBinaryLengthPrefixedWriter(w io.Writer, o interface{}) (n int64, err error) + func (cdc *Codec) MarshalJSON(o interface{}) ([]byte, error) + func (cdc *Codec) MarshalJSONIndent(o interface{}, prefix, indent string) ([]byte, error) + func (cdc *Codec) MustMarshalBinaryBare(o interface{}) []byte + func (cdc *Codec) MustMarshalBinaryLengthPrefixed(o interface{}) []byte + func (cdc *Codec) MustMarshalJSON(o interface{}) []byte + func (cdc *Codec) MustUnmarshalBinaryBare(bz []byte, ptr interface{}) + func (cdc *Codec) MustUnmarshalBinaryLengthPrefixed(bz []byte, ptr interface{}) + func (cdc *Codec) MustUnmarshalJSON(bz []byte, ptr interface{}) + func (cdc *Codec) PrintTypes(out io.Writer) error + func (cdc *Codec) RegisterConcrete(o interface{}, name string, copts *ConcreteOptions) + func (cdc *Codec) RegisterInterface(ptr interface{}, iopts *InterfaceOptions) + func (cdc *Codec) Seal() *Codec + func (cdc *Codec) UnmarshalBinaryBare(bz []byte, ptr interface{}) error + func (cdc *Codec) UnmarshalBinaryLengthPrefixed(bz []byte, ptr interface{}) error + func (cdc *Codec) UnmarshalBinaryLengthPrefixedReader(r io.Reader, ptr interface{}, maxSize int64) (n int64, err error) + func (cdc *Codec) UnmarshalJSON(bz []byte, ptr interface{}) error + type ConcreteInfo struct + AminoJSONMarshalReprType reflect.Type + AminoJSONUnmarshalReprType reflect.Type + AminoMarshalReprType reflect.Type + AminoUnmarshalReprType reflect.Type + Disamb DisambBytes + IsAminoJSONMarshaler bool + IsAminoJSONUnmarshaler bool + IsAminoMarshaler bool + IsAminoUnmarshaler bool + Name string + PointerPreferred bool + Prefix PrefixBytes + Registered bool + func (cinfo ConcreteInfo) GetDisfix() DisfixBytes + type ConcreteOptions struct + type DisambBytes [DisambBytesLen]byte + func (db DisambBytes) Bytes() []byte + func (db DisambBytes) EqualBytes(bz []byte) bool + type DisfixBytes [DisfixBytesLen]byte + func (df DisfixBytes) Bytes() []byte + func (df DisfixBytes) EqualBytes(bz []byte) bool + type FieldInfo struct + Index int + Name string + Type reflect.Type + UnpackedList bool + ZeroValue reflect.Value + type FieldOptions struct + BinFieldNum uint32 + BinFixed32 bool + BinFixed64 bool + EmptyElements bool + JSONName string + JSONOmitEmpty bool + Unsafe bool + WriteEmpty bool + type InterfaceInfo struct + Implementers map[PrefixBytes][]*TypeInfo + Priority []DisfixBytes + type InterfaceOptions struct + AlwaysDisambiguate bool + Priority []string + type InvalidTimeErr string + func (e InvalidTimeErr) Error() string + type PrefixBytes [PrefixBytesLen]byte + func NewPrefixBytes(prefixBytes []byte) PrefixBytes + func (pb PrefixBytes) Bytes() []byte + func (pb PrefixBytes) EqualBytes(bz []byte) bool + type StructInfo struct + Fields []FieldInfo + type Typ3 uint8 + func (typ Typ3) String() string + type TypeInfo struct + PtrToType reflect.Type + Type reflect.Type + ZeroProto interface{} + ZeroValue reflect.Value + func (ti TypeInfo) String() string