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

Method CreateFP

src/minisketch/include/minisketch.h:273–276  ·  view source on GitHub ↗

Create a Minisketch object sufficiently large for the specified number of elements at given fpbits. * It may construct an invalid object, which you may need to check for. */

Source from the content-addressed store, hash-verified

271 /** Create a Minisketch object sufficiently large for the specified number of elements at given fpbits.
272 * It may construct an invalid object, which you may need to check for. */
273 static Minisketch CreateFP(uint32_t bits, uint32_t implementation, size_t max_elements, uint32_t fpbits) noexcept
274 {
275 return Minisketch(bits, implementation, ComputeCapacity(bits, max_elements, fpbits));
276 }
277
278 /** Return the field size for a (valid) Minisketch object. */
279 uint32_t GetBits() const noexcept { return minisketch_bits(m_minisketch.get()); }

Callers

nothing calls this directly

Calls 2

ComputeCapacityFunction · 0.85
MinisketchClass · 0.70

Tested by

no test coverage detected