Versions in this module Expand all Collapse all v1 v1.0.6 Oct 20, 2020 v1.0.5 Oct 20, 2020 Changes in this version + const KMin + const MMin + const Uint64Bytes + func EnableDebugging() + func OptimalK(m, maxN uint64) uint64 + func OptimalM(maxN uint64, p float64) uint64 + func UniqueKeys(keys []uint64) bool + type Filter struct + func New(m, k uint64) (*Filter, error) + func NewOptimal(maxN uint64, p float64) (*Filter, error) + func NewWithKeys(m uint64, origKeys []uint64) (f *Filter, err error) + func ReadFile(filename string) (f *Filter, n int64, err error) + func ReadFrom(r io.Reader) (f *Filter, n int64, err error) + func UnmarshalText(text []byte) (f *Filter, err error) + func (f *Filter) Add(v hash.Hash64) + func (f *Filter) AddHash(hash uint64) + func (f *Filter) Contains(v hash.Hash64) bool + func (f *Filter) ContainsHash(hash uint64) bool + func (f *Filter) Copy() (*Filter, error) + func (f *Filter) FalsePosititveProbability() float64 + func (f *Filter) GobDecode(data []byte) error + func (f *Filter) GobEncode() ([]byte, error) + func (f *Filter) IsCompatible(f2 *Filter) bool + func (f *Filter) K() uint64 + func (f *Filter) M() uint64 + func (f *Filter) MarshalBinary() (data []byte, err error) + func (f *Filter) MarshalText() (text []byte, err error) + func (f *Filter) MarshallToWriter(out io.Writer) (int, [sha512.Size384]byte, error) + func (f *Filter) N() uint64 + func (f *Filter) NewCompatible() (*Filter, error) + func (f *Filter) PreciseFilledRatio() float64 + func (f *Filter) ReadFrom(r io.Reader) (n int64, err error) + func (f *Filter) Union(f2 *Filter) (out *Filter, err error) + func (f *Filter) UnionInPlace(f2 *Filter) error + func (f *Filter) UnmarshalBinary(data []byte) (err error) + func (f *Filter) UnmarshalText(text []byte) error + func (f *Filter) WriteFile(filename string) (n int64, err error) + func (f *Filter) WriteTo(w io.Writer) (n int64, err error)