bench

package
v0.0.0-...-b74f371 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {
	Name     string
	BirthDay int64
	Phone    string
	Siblings int64
	Spouse   uint8
	Money    float64
	Children []string
}

func (*A) DecodeMsg

func (z *A) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*A) EncodeMsg

func (z *A) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*A) Marshal

func (d *A) Marshal(buf []byte) ([]byte, error)

func (*A) MarshalMsg

func (z *A) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*A) Msgsize

func (z *A) Msgsize() (s int)

func (*A) Size

func (d *A) Size() (s uint64)

func (*A) Unmarshal

func (d *A) Unmarshal(buf []byte) (uint64, error)

func (*A) UnmarshalMsg

func (z *A) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Fixed

type Fixed struct {
	A int64
	B uint32
	C float32
	D float64
}

func (*Fixed) Marshal

func (d *Fixed) Marshal(buf []byte) ([]byte, error)

func (*Fixed) Size

func (d *Fixed) Size() (s uint64)

func (*Fixed) Unmarshal

func (d *Fixed) Unmarshal(buf []byte) (uint64, error)

type Group

type Group struct {
	Name    string
	Members []Person
}

func (*Group) DecodeMsg

func (z *Group) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*Group) Deserialize

func (d *Group) Deserialize(r io.Reader) error

func (*Group) EncodeMsg

func (z *Group) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Group) FramedSize

func (d *Group) FramedSize() (s uint64, us uint64)

func (*Group) Marshal

func (d *Group) Marshal(buf []byte) ([]byte, error)

func (*Group) MarshalMsg

func (z *Group) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Group) Msgsize

func (z *Group) Msgsize() (s int)

func (*Group) Serialize

func (d *Group) Serialize(w io.Writer) error

func (*Group) Size

func (d *Group) Size() (s uint64)

func (*Group) Unmarshal

func (d *Group) Unmarshal(buf []byte) (uint64, error)

func (*Group) UnmarshalMsg

func (z *Group) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Person

type Person struct {
	Name   string
	Age    uint8
	Height float64
}

func (*Person) DecodeMsg

func (z *Person) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Person) EncodeMsg

func (z Person) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*Person) Marshal

func (d *Person) Marshal(buf []byte) ([]byte, error)

func (Person) MarshalMsg

func (z Person) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Person) Msgsize

func (z Person) Msgsize() (s int)

func (*Person) Size

func (d *Person) Size() (s uint64)

func (*Person) Unmarshal

func (d *Person) Unmarshal(buf []byte) (uint64, error)

func (*Person) UnmarshalMsg

func (z *Person) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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