bloomfilter

package module
v0.0.0-...-91db248 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

bloomfilter

A simple go implementation of bloomfilter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BloomFilter

type BloomFilter struct {
	// contains filtered or unexported fields
}

func NewBloomFilter

func NewBloomFilter(bfSize, numHashFuncs uint64) *BloomFilter

func NewBloomFilterFromBytes

func NewBloomFilterFromBytes(bs []byte, numHashFuncs uint64) (*BloomFilter, error)

func (*BloomFilter) Add

func (bf *BloomFilter) Add(b []byte)

func (*BloomFilter) Check

func (bf *BloomFilter) Check(b []byte) bool

func (*BloomFilter) Dump

func (bf *BloomFilter) Dump() ([]byte, error)

Jump to

Keyboard shortcuts

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