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

Method Minisketch

src/minisketch/include/minisketch.h:232–237  ·  view source on GitHub ↗

Construct a clone of the specified sketch. */

Source from the content-addressed store, hash-verified

230
231 /** Construct a clone of the specified sketch. */
232 Minisketch(const Minisketch& sketch) noexcept
233 {
234 if (sketch.m_minisketch) {
235 m_minisketch = std::unique_ptr<minisketch, Deleter>(minisketch_clone(sketch.m_minisketch.get()));
236 }
237 }
238
239 /** Make this Minisketch a clone of the specified one. */
240 Minisketch& operator=(const Minisketch& sketch) noexcept

Callers

nothing calls this directly

Calls 3

minisketch_cloneFunction · 0.85
minisketch_createFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected