Constructors

Synopses

Declared in <blockfilter.h>

Constructs an empty filter.

explicit
GCSFilter(Params const& params = Params());

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

GCSFilter(
    Params const& params,
    ElementSet const& elements);

Reconstructs an already‐created filter from an encoding.

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

Parameters

Name

Description

params

The SipHash keys and Golomb‐Rice coding parameters.

elements

The set of elements to insert into the filter.

encoded_filter

The serialized filter contents to decode.

skip_decode_check

If true, skip validating the encoded contents.

Created with MrDocs