internal

package
v0.0.0-...-b53f8ce Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeMsgpack

func DecodeMsgpack(r io.Reader, vs ...any) error

func EncodeMsgpack

func EncodeMsgpack(w io.Writer, vs ...any) error

func MarshalMsgpack

func MarshalMsgpack(v any) ([]byte, error)

func PutMsgpackDecoder

func PutMsgpackDecoder(dec *MsgpackDecoder)

func PutMsgpackEncoder

func PutMsgpackEncoder(enc *MsgpackEncoder)

func UnmarshalMsgpack

func UnmarshalMsgpack(b []byte, v any) error

Types

type Complex

type Complex interface {
	~complex64 | ~complex128
}

Complex is a constraint that permits any complex numeric type. If future releases of Go add new predeclared complex numeric types, this constraint will be modified to include them.

type DecoderType

type DecoderType interface {
	Decode(v any) error
}

type EncoderType

type EncoderType interface {
	Decode(v any) error
}

type Float

type Float interface {
	~float32 | ~float64
}

Float is a constraint that permits any floating-point type. If future releases of Go add new predeclared floating-point types, this constraint will be modified to include them.

type Integer

type Integer interface {
	Signed | Unsigned
}

Integer is a constraint that permits any integer type. If future releases of Go add new predeclared integer types, this constraint will be modified to include them.

type MsgpackDecoder

type MsgpackDecoder = msgpack.Decoder

func NewMsgpackDecoder

func NewMsgpackDecoder(r io.Reader) *MsgpackDecoder

NewMsgpackDecoder returns a new Decoder that reads from r. uses json CustomStructTag, and loose interface decoding.

type MsgpackEncoder

type MsgpackEncoder = msgpack.Encoder

func NewMsgpackEncoder

func NewMsgpackEncoder(w io.Writer) *MsgpackEncoder

NewMsgpackDecoder returns a new Decoder that writes to w. uses json CustomStructTag, compact floats and ints.

type Ordered

type Ordered interface {
	Integer | Float | ~string
}

Ordered is a constraint that permits any ordered type: any type that supports the operators < <= >= >. If future releases of Go add new ordered types, this constraint will be modified to include them.

type Signed

type Signed interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

Signed is a constraint that permits any signed integer type. If future releases of Go add new predeclared signed integer types, this constraint will be modified to include them.

type Unsigned

type Unsigned interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

Unsigned is a constraint that permits any unsigned integer type. If future releases of Go add new predeclared unsigned integer types, this constraint will be modified to include them.

Jump to

Keyboard shortcuts

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