MCPcopy Create free account
hub / github.com/ElementsProject/elements / DecodeFP

Method DecodeFP

src/minisketch/include/minisketch.h:359–362  ·  view source on GitHub ↗

C++17 only: similar to Decode(), but with specified false positive probability. */

Source from the content-addressed store, hash-verified

357
358 /** C++17 only: similar to Decode(), but with specified false positive probability. */
359 std::optional<std::vector<uint64_t>> DecodeFP(uint32_t fpbits) const
360 {
361 return Decode(ComputeMaxElements(GetBits(), GetCapacity(), fpbits));
362 }
363#endif // __cplusplus >= 201703L
364};
365#endif // __cplusplus >= 201103L

Callers

nothing calls this directly

Calls 2

ComputeMaxElementsFunction · 0.85
DecodeFunction · 0.50

Tested by

no test coverage detected