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 
13 namespace node {
15 Minisketch MakeMinisketch32(size_t capacity);
17 Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits);
18 } // namespace node
19 
20 #endif // BITCOIN_NODE_MINISKETCHWRAPPER_H
minisketch.h
node::MakeMinisketch32
Minisketch MakeMinisketch32(size_t capacity)
Wrapper around Minisketch::Minisketch(32, implementation, capacity).
Definition: minisketchwrapper.cpp:70
node::MakeMinisketch32FP
Minisketch MakeMinisketch32FP(size_t max_elements, uint32_t fpbits)
Wrapper around Minisketch::CreateFP.
Definition: minisketchwrapper.cpp:75
node
Definition: init.h:22