Serialize this (valid) Minisketch object as a byte vector. */
| 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). */ |
nothing calls this directly
no test coverage detected