Versions in this module Expand all Collapse all v1 v1.0.1 Jan 10, 2024 Changes in this version + const DefaultCapacity + const DefaultLoadFactor + type Filter struct + BucketPow uint + Buckets []bucket + Count uint + func CopyFilter(buckets []bucket, count uint, bucketPow uint) *Filter + func Decode(bytes []byte) (*Filter, error) + func NewFilter(capacity uint) *Filter + func (cf *Filter) CountEntries() uint + func (cf *Filter) Delete(data []byte) bool + func (cf *Filter) Encode() []byte + func (cf *Filter) Insert(data []byte) bool + func (cf *Filter) InsertUnique(data []byte) bool + func (cf *Filter) Lookup(data []byte) bool + func (cf *Filter) Reset() + type ScalableCuckooFilter struct + func DecodeScalableFilter(fBytes []byte) (*ScalableCuckooFilter, error) + func NewScalableCuckooFilter(opts ...option) *ScalableCuckooFilter + func (sf *ScalableCuckooFilter) CountEntries() uint + func (sf *ScalableCuckooFilter) DecodeWithParam(fBytes []byte, opts ...option) (*ScalableCuckooFilter, error) + func (sf *ScalableCuckooFilter) Delete(data []byte) bool + func (sf *ScalableCuckooFilter) Encode() []byte + func (sf *ScalableCuckooFilter) Insert(data []byte) bool + func (sf *ScalableCuckooFilter) InsertUnique(data []byte) bool + func (sf *ScalableCuckooFilter) Lookup(data []byte) bool + func (sf *ScalableCuckooFilter) Reset() + type Store struct + Bytes [][]byte + LoadFactor float32