Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2020 v0.0.1 May 13, 2020 Changes in this version + const DisambBytesLen + const DisfixBytesLen + const PrefixBytesLen + const RFC3339Millis + const Typ3_4Byte + const Typ3_8Byte + const Typ3_ByteLength + const Typ3_Interface + const Typ3_List + const Typ3_Struct + const Typ3_StructTerm + const Typ3_Varint + const Typ4_Pointer + const Version + 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, typ Typ3, hasPb bool, isNil bool, ...) + 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 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 NameToDisfix(name string) (db DisambBytes, pb PrefixBytes) + func UvarintSize(u uint64) int + func VarintSize(i int64) int + type Codec struct + func NewCodec() *Codec + func (cdc *Codec) MarshalBinary(o interface{}) ([]byte, error) + func (cdc *Codec) MarshalBinaryBare(o interface{}) ([]byte, error) + func (cdc *Codec) MarshalBinaryWriter(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) MustMarshalBinary(o interface{}) []byte + func (cdc *Codec) MustMarshalBinaryBare(o interface{}) []byte + func (cdc *Codec) MustUnmarshalBinary(bz []byte, ptr interface{}) + func (cdc *Codec) MustUnmarshalBinaryBare(bz []byte, ptr interface{}) + func (cdc *Codec) RegisterConcrete(o interface{}, name string, opts *ConcreteOptions) + func (cdc *Codec) RegisterInterface(ptr interface{}, opts *InterfaceOptions) + func (cdc *Codec) UnmarshalBinary(bz []byte, ptr interface{}) error + func (cdc *Codec) UnmarshalBinaryBare(bz []byte, ptr interface{}) error + func (cdc *Codec) UnmarshalBinaryReader(r io.Reader, ptr interface{}, maxSize int64) (n int64, err error) + func (cdc *Codec) UnmarshalJSON(bz []byte, ptr interface{}) error + type ConcreteInfo struct + AminoMarshalReprType reflect.Type + AminoUnmarshalReprType reflect.Type + Disamb DisambBytes + 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 + BinTyp3 Typ3 + Index int + Name string + Type reflect.Type + ZeroValue reflect.Value + type FieldOptions struct + BinFieldNum uint32 + BinVarint bool + JSONName string + JSONOmitEmpty bool + Unsafe bool + type InterfaceInfo struct + Implementers map[PrefixBytes][]*TypeInfo + Priority []DisfixBytes + type InterfaceOptions struct + AlwaysDisambiguate bool + Priority []string + type PrefixBytes [PrefixBytesLen]byte + func NewPrefixBytes(prefixBytes []byte) PrefixBytes + func (pb PrefixBytes) Bytes() []byte + func (pb PrefixBytes) EqualBytes(bz []byte) bool + func (pb PrefixBytes) SplitTyp3() (PrefixBytes, Typ3) + func (pb PrefixBytes) WithTyp3(typ Typ3) PrefixBytes + type StructInfo struct + Fields []FieldInfo + type Typ3 uint8 + func (typ Typ3) String() string + type Typ4 uint8 + func (typ Typ4) IsPointer() bool + func (typ Typ4) String() string + func (typ Typ4) Typ3() Typ3 + type TypeInfo struct + PtrToType reflect.Type + Type reflect.Type + ZeroProto interface{} + ZeroValue reflect.Value + func (ti TypeInfo) String() string