Versions in this module Expand all Collapse all v0 v0.2.17 Dec 28, 2019 v0.2.15 Dec 28, 2019 Changes in this version + const KeySize + var ErrNTooBig = fmt.Errorf("N is too big to fit in uint32") + var ErrPTooBig = fmt.Errorf("P is too big to fit in uint32") + type Filter struct + func BuildGCSFilter(P uint8, M uint64, key [KeySize]byte, data [][]byte) (*Filter, error) + func FromBytes(N uint32, P uint8, M uint64, d []byte) (*Filter, error) + func FromNBytes(P uint8, M uint64, d []byte) (*Filter, error) + func (f *Filter) Bytes() ([]byte, error) + func (f *Filter) Match(key [KeySize]byte, data []byte) (bool, error) + func (f *Filter) MatchAny(key [KeySize]byte, data [][]byte) (bool, error) + func (f *Filter) N() uint32 + func (f *Filter) NBytes() ([]byte, error) + func (f *Filter) NPBytes() ([]byte, error) + func (f *Filter) P() uint8 + func (f *Filter) PBytes() ([]byte, error)