libbloom

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0, CC0-1.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Foreach added in v0.0.13

func Foreach(nHashNums, reduce, nTweak uint32, bloom []byte, cb func([16]byte))

func Get

func Get(nHashNums, nTweak uint32, k [32]byte, bloom []byte) bool

func GetPrefix added in v0.0.13

func GetPrefix(nHashNums, nTweak uint32, k [32]byte, bloom []byte) bool
func Search(power byte, tweakAdd, initSize, nFuncs uint32, txmap map[[32]byte]bool) (size uint32, tweak uint32)

func Serialize

func Serialize(filter []byte, nFuncs, tweak uint32) []byte

func Set

func Set(nHashNums, nTweak uint32, k [32]byte, bloom []byte)

func SetPrefix added in v0.0.13

func SetPrefix(nHashNums, nTweak uint32, k [32]byte, bloom []byte)

func Test

func Test(size, nTweak, nHashNums uint32, txmap map[[32]byte]bool) (fp uint32, bloom []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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