Bitcoin Core  22.99.0
P2P Digital Currency
minisketchwrapper.h
Go to the documentation of this file.
1 // Copyright (c) 2021 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_NODE_MINISKETCHWRAPPER_H
6 #define BITCOIN_NODE_MINISKETCHWRAPPER_H
7 
8 #include <minisketch.h>
9 
10 #include <cstddef>
11 #include <cstdint>
12 
14 Minisketch MakeMinisketch32(size_t capacity);
16 Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits);
17 
18 #endif // BITCOIN_NODE_MINISKETCHWRAPPER_H
minisketch.h
MakeMinisketch32FP
Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits)
Wrapper around Minisketch::CreateFP.
Definition: minisketchwrapper.cpp:74
MakeMinisketch32
Minisketch MakeMinisketch32(size_t capacity)
Wrapper around Minisketch::Minisketch(32, implementation, capacity).
Definition: minisketchwrapper.cpp:69