benchmarks

package
v0.0.0-...-73ab8a4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2017 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Name     string
	Health   [2]uint16
	Mana     [2]uint16
	Stamina  [2]uint16
	Friends  []int64
	Statuses []Status
	Dead     bool
}

func NewEntity

func NewEntity() *Entity

func (*Entity) DecodeMsg

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

DecodeMsg implements msgp.Decodable

func (*Entity) EncodeMsg

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

EncodeMsg implements msgp.Encodable

func (*Entity) MarshalMsg

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

MarshalMsg implements msgp.Marshaler

func (*Entity) Msgsize

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

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

func (*Entity) Serialize

func (o *Entity) Serialize(s Serializer) error

func (*Entity) UnmarshalMsg

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

UnmarshalMsg implements msgp.Unmarshaler

type Serializer

type Serializer interface {
	Serialize(...interface{}) error
}

type Status

type Status struct {
	Name     string
	Duration uint16
}

func NewStatus

func NewStatus() *Status

func (*Status) DecodeMsg

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

DecodeMsg implements msgp.Decodable

func (Status) EncodeMsg

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

EncodeMsg implements msgp.Encodable

func (Status) MarshalMsg

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

MarshalMsg implements msgp.Marshaler

func (Status) Msgsize

func (z Status) Msgsize() (s int)

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

func (*Status) Serialize

func (o *Status) Serialize(s Serializer) error

func (*Status) UnmarshalMsg

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