Versions in this module Expand all Collapse all v1 v1.0.0 Jul 19, 2021 Changes in this version + const RFC3339Millis + const ReadSliceChunkSize + const Version + var BasicCodec = Codec + var BytesCodec = Codec + var ErrBinaryReadInvalidLength = errors.New("Error: binary read invalid length") + var ErrBinaryReadOverflow = errors.New("Error: binary read overflow") + var ErrBinaryWriteOverflow = errors.New("Error: binary write overflow") + func BasicCodecComparator(o1 interface{}, o2 interface{}) int + func BasicCodecDecoder(r io.Reader, n *int, err *error) (o interface{}) + func BasicCodecEncoder(o interface{}, w io.Writer, n *int, err *error) + func BinaryBytes(o interface{}) []byte + func BinaryCompare(a, b interface{}) int + func BinaryEqual(a, b interface{}) bool + func BinaryRipemd160(o interface{}) []byte + func BinarySha256(o interface{}) []byte + func ByteSliceSize(bz []byte) int + func BytesCodecComparator(o1 interface{}, o2 interface{}) int + func BytesCodecDecoder(r io.Reader, n *int, err *error) (o interface{}) + func BytesCodecEncoder(o interface{}, w io.Writer, n *int, err *error) + func GetBool(buf []byte) (bool, error) + func GetByteSlice(buf []byte) (bz []byte, n int, err error) + func GetInt16(buf []byte) int16 + func GetInt32(buf []byte) int32 + func GetInt64(buf []byte) int64 + func GetString(buf []byte) (s string, n int, err error) + func GetTypeFromStructDeclaration(o interface{}) reflect.Type + func GetUint16(buf []byte) uint16 + func GetUint32(buf []byte) uint32 + func GetUint64(buf []byte) uint64 + func GetUvarint(buf []byte) (i uint, n int, err error) + func GetVarint(buf []byte) (i int, n int, err error) + func JSONBytes(o interface{}) []byte + func JSONBytesPretty(o interface{}) []byte + func PutBool(buf []byte, b bool) + func PutByteSlice(buf []byte, bz []byte) (n int, err error) + func PutInt16(buf []byte, i int16) + func PutInt32(buf []byte, i int32) + func PutInt64(buf []byte, i int64) + func PutString(buf []byte, s string) (n int, err error) + func PutUint16(buf []byte, i uint16) + func PutUint32(buf []byte, i uint32) + func PutUint64(buf []byte, i uint64) + func PutUvarint(buf []byte, i uint) (n int, err error) + func PutVarint(buf []byte, i int) (n int, err error) + func ReadBinary(o interface{}, r io.Reader, lmt int, n *int, err *error) (res interface{}) + func ReadBinaryBytes(d []byte, ptr interface{}) error + func ReadBinaryPtr(o interface{}, r io.Reader, lmt int, n *int, err *error) (res interface{}) + func ReadBinaryPtrLengthPrefixed(o interface{}, r io.Reader, lmt int, n *int, err *error) (res interface{}) + func ReadBool(r io.Reader, n *int, err *error) bool + func ReadByte(r io.Reader, n *int, err *error) byte + func ReadByteSlice(r io.Reader, lmt int, n *int, err *error) []byte + func ReadByteSlices(r io.Reader, lmt int, n *int, err *error) [][]byte + func ReadFloat32(r io.Reader, n *int, err *error) float32 + func ReadFloat64(r io.Reader, n *int, err *error) float64 + func ReadFull(buf []byte, r io.Reader, n *int, err *error) + func ReadInt16(r io.Reader, n *int, err *error) int16 + func ReadInt32(r io.Reader, n *int, err *error) int32 + func ReadInt64(r io.Reader, n *int, err *error) int64 + func ReadInt8(r io.Reader, n *int, err *error) int8 + func ReadJSON(o interface{}, bytes []byte, err *error) interface + func ReadJSONBytes(d []byte, ptr interface{}) (err error) + func ReadJSONObject(o interface{}, object interface{}, err *error) interface + func ReadJSONObjectPtr(o interface{}, object interface{}, err *error) interface + func ReadJSONPtr(o interface{}, bytes []byte, err *error) interface + func ReadString(r io.Reader, lmt int, n *int, err *error) string + func ReadTime(r io.Reader, n *int, err *error) time.Time + func ReadUint16(r io.Reader, n *int, err *error) uint16 + func ReadUint16s(r io.Reader, n *int, err *error) []uint16 + func ReadUint32(r io.Reader, n *int, err *error) uint32 + func ReadUint64(r io.Reader, n *int, err *error) uint64 + func ReadUint8(r io.Reader, n *int, err *error) uint8 + func ReadUvarint(r io.Reader, n *int, err *error) uint + func ReadVarint(r io.Reader, n *int, err *error) int + func UvarintSize(i uint64) int + func WriteBinary(o interface{}, w io.Writer, n *int, err *error) + func WriteBinaryLengthPrefixed(o interface{}, w io.Writer, n *int, err *error) + func WriteBool(b bool, w io.Writer, n *int, err *error) + func WriteByte(b byte, w io.Writer, n *int, err *error) + func WriteByteSlice(bz []byte, w io.Writer, n *int, err *error) + func WriteByteSlices(bzz [][]byte, w io.Writer, n *int, err *error) + func WriteFloat32(f float32, w io.Writer, n *int, err *error) + func WriteFloat64(f float64, w io.Writer, n *int, err *error) + func WriteInt16(i int16, w io.Writer, n *int, err *error) + func WriteInt32(i int32, w io.Writer, n *int, err *error) + func WriteInt64(i int64, w io.Writer, n *int, err *error) + func WriteInt8(i int8, w io.Writer, n *int, err *error) + func WriteJSON(o interface{}, w io.Writer, n *int, err *error) + func WriteString(s string, w io.Writer, n *int, err *error) + func WriteTime(t time.Time, w io.Writer, n *int, err *error) + func WriteTo(bz []byte, w io.Writer, n *int, err *error) + func WriteUint16(i uint16, w io.Writer, n *int, err *error) + func WriteUint16s(iz []uint16, w io.Writer, n *int, err *error) + func WriteUint32(i uint32, w io.Writer, n *int, err *error) + func WriteUint64(i uint64, w io.Writer, n *int, err *error) + func WriteUint8(i uint8, w io.Writer, n *int, err *error) + func WriteUvarint(i uint, w io.Writer, n *int, err *error) + func WriteVarint(i int, w io.Writer, n *int, err *error) + type Codec struct + Compare Comparator + Decode Decoder + Encode Encoder + type Comparator func(o1 interface{}, o2 interface{}) int + type ConcreteType struct + Byte byte + O interface{} + type Decoder func(r io.Reader, n *int, err *error) interface + type Encoder func(o interface{}, w io.Writer, n *int, err *error) + type Options struct + JSONName string + JSONOmitEmpty bool + Unsafe bool + Varint bool + ZeroValue interface{} + type StructFieldInfo struct + Index int + Type reflect.Type + type TypeInfo struct + ByteToType map[byte]reflect.Type + Fields []StructFieldInfo + IsRegisteredInterface bool + Type reflect.Type + TypeToByte map[reflect.Type]byte + Unwrap bool + func GetTypeInfo(rt reflect.Type) *TypeInfo + func MakeTypeInfo(rt reflect.Type) *TypeInfo + func RegisterInterface(o interface{}, ctypes ...ConcreteType) *TypeInfo