msgp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 1 Imported by: 0

README

msgp -file=model.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	A uint32   `msg:"A"`
	B uint64   `msg:"B"`
	C float32  `msg:"C"`
	D float64  `msg:"D"`
	E string   `msg:"E"`
	F bool     `msg:"F"`
	G []byte   `msg:"G"`
	H [][]byte `msg:"H"`
}

Object is a test struct

func (*Object) DecodeMsg

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

DecodeMsg implements msgp.Decodable

func (*Object) EncodeMsg

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

EncodeMsg implements msgp.Encodable

func (*Object) MarshalMsg

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

MarshalMsg implements msgp.Marshaler

func (*Object) Msgsize

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

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Object) UnmarshalMsg

func (z *Object) 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