pdatautil

package module
v0.114.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash added in v0.107.0

func Hash(opts ...HashOption) [16]byte

Hash generates a hash for the provided options and returns the computed hash as a [16]byte.

func Hash64 added in v0.107.0

func Hash64(opts ...HashOption) uint64

Hash64 generates a hash for the provided options and returns the computed hash as a uint64.

func MapHash

func MapHash(m pcommon.Map) [16]byte

MapHash return a hash for the provided map. Maps with the same underlying key/value pairs in different order produce the same deterministic hash value.

func ValueHash

func ValueHash(v pcommon.Value) [16]byte

ValueHash return a hash for the provided pcommon.Value.

Types

type HashOption added in v0.107.0

type HashOption func(*hashWriter)

HashOption is a function that sets an option on the hash calculation.

func WithMap added in v0.107.0

func WithMap(m pcommon.Map) HashOption

WithMap adds a map to the hash calculation.

func WithString added in v0.107.0

func WithString(s string) HashOption

WithString adds a string to the hash calculation.

func WithValue added in v0.107.0

func WithValue(v pcommon.Value) HashOption

WithValue adds a value to the hash calculation.

Jump to

Keyboard shortcuts

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