msgp

package
v0.0.0-...-faec3f3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sketch

type Sketch struct {
	L      uint64 // number of rows
	B      uint64 // think of this as the k
	CMS    [][]uint64
	Counts [][]int64
	Words  [][]string
}

Sketch ...

func (*Sketch) DecodeMsg

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

DecodeMsg implements msgp.Decodable

func (*Sketch) EncodeMsg

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

EncodeMsg implements msgp.Encodable

func (*Sketch) MarshalMsg

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

MarshalMsg implements msgp.Marshaler

func (*Sketch) Msgsize

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

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

func (*Sketch) UnmarshalMsg

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