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

Method Serialize

src/minisketch/include/minisketch.h:324–329  ·  view source on GitHub ↗

Serialize this (valid) Minisketch object as a byte vector. */

Source from the content-addressed store, hash-verified

322
323 /** Serialize this (valid) Minisketch object as a byte vector. */
324 std::vector<unsigned char> Serialize() const
325 {
326 std::vector<unsigned char> result(GetSerializedSize());
327 minisketch_serialize(m_minisketch.get(), result.data());
328 return result;
329 }
330
331 /** Deserialize into this (valid) Minisketch from an object containing its bytes (which has data()
332 * and size() members). */

Callers

nothing calls this directly

Calls 3

minisketch_serializeFunction · 0.85
getMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected