Documentation ¶
Index ¶
Constants ¶
View Source
const ( BUCKET_SIZE = 4 // MAX_KICK_NUM = 1024 //Max number of kicks allowed FP_SEED = 2020 // Seeds for calculating fingerprints (SHA256) FP_SEED2 = 2021 // Seeds for calculating alternative fingerprints (SHA256) CAPACITY_FACTOR = 0.9 // Increase the filter's size by a factor to allow better capacity )
Variables ¶
This section is empty.
Functions ¶
func GetFP ¶
This function returns a SHA224 hash output as the fingerprint of the given input element
Types ¶
type CFilter ¶
type CFilter struct {
// contains filtered or unexported fields
}
func InitCFilter ¶
This function initializes a filter given the size of input set
func (*CFilter) Filter2Bytes ¶
This function encode the current filter into []bytes
Click to show internal directories.
Click to hide internal directories.