gencoder

package
v0.0.95 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalKey

func MarshalKey(d *pb.DatumKey) ([]byte, error)

func MarshalValue

func MarshalValue(d *pb.DatumValue) ([]byte, error)

func SizeKey

func SizeKey(d *pb.DatumKey) (s uint64)

////////

func SizeValue

func SizeValue(d *pb.DatumValue) (s uint64)

func UnmarshalKey

func UnmarshalKey(d *pb.DatumKey, buf []byte) (uint64, error)

func UnmarshalValue

func UnmarshalValue(d *pb.DatumValue, buf []byte) (uint64, error)

Types

type DatumScore

type DatumScore struct {
	Score float64
}

func (*DatumScore) Marshal

func (d *DatumScore) Marshal() ([]byte, error)

func (*DatumScore) Size

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

func (*DatumScore) Unmarshal

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

Jump to

Keyboard shortcuts

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