GCSFilter::GCSFilter

Constructors

Synopses

Declared in <blockfilter.h>

Constructs an empty filter.

explicit
GCSFilter(Params const& params = Params());
» more...

Builds a new filter from the params and set of elements.

GCSFilter(
    Params const& params,
    ElementSet const& elements);
» more...

Reconstructs an already-created filter from an encoding.

GCSFilter(
    Params const& params,
    std::vector<unsigned char> encoded_filter,
    bool skip_decode_check);
» more...

Parameters

NameDescription
paramsThe SipHash keys and Golomb-Rice coding parameters.
elementsThe set of elements to insert into the filter.
encoded_filterThe serialized filter contents to decode.
skip_decode_checkIf true, skip validating the encoded contents.