Decode this (valid) Minisketch object into the result vector, up to as many elements as the * vector's size permits. */
| 310 | /** Decode this (valid) Minisketch object into the result vector, up to as many elements as the |
| 311 | * vector's size permits. */ |
| 312 | bool Decode(std::vector<uint64_t>& result) const |
| 313 | { |
| 314 | ssize_t ret = minisketch_decode(m_minisketch.get(), result.size(), result.data()); |
| 315 | if (ret == -1) return false; |
| 316 | result.resize(ret); |
| 317 | return true; |
| 318 | } |
| 319 | |
| 320 | /** Get the serialized size in bytes for this (valid) Minisketch object.. */ |
| 321 | size_t GetSerializedSize() const noexcept { return minisketch_serialized_size(m_minisketch.get()); } |
nothing calls this directly
no test coverage detected