message

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxVectorOffset = uint64(math.MaxUint16)
)

Variables

This section is empty.

Functions

func GetKeysAndValues

func GetKeysAndValues(msg Message) (keys, values val.SlicedBuffer, cnt uint16)

func GetSubtrees

func GetSubtrees(msg Message) []uint64

func GetTreeCount

func GetTreeCount(msg Message) int

func GetTreeLevel

func GetTreeLevel(msg Message) int

func WalkAddresses

func WalkAddresses(ctx context.Context, msg Message, cb func(ctx context.Context, addr hash.Hash) error) error

Types

type AddressMapSerializer

type AddressMapSerializer struct {
	Pool pool.BuffPool
}

func (AddressMapSerializer) Serialize

func (s AddressMapSerializer) Serialize(keys, addrs [][]byte, subtrees []uint64, level int) Message

type Message

type Message []byte

type ProllyMapSerializer

type ProllyMapSerializer struct {
	Pool pool.BuffPool
}

func (ProllyMapSerializer) Serialize

func (s ProllyMapSerializer) Serialize(keys, values [][]byte, subtrees []uint64, level int) Message

type Serializer

type Serializer interface {
	Serialize(keys, values [][]byte, subtrees []uint64, level int) Message
}

Jump to

Keyboard shortcuts

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