Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CFixedVarIntsBitSet Class Reference
Stores a fixed size bitset as a series of VarInts. More...
#include <serialize.h>
Public Member Functions | |
CFixedVarIntsBitSet (std::vector< bool > &vecIn, size_t sizeIn) | |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
void | Unserialize (Stream &s) |
Protected Attributes | |
std::vector< bool > & | vec |
size_t | size |
Detailed Description
Stores a fixed size bitset as a series of VarInts.
Each VarInt is an offset from the last entry and the sum of the last entry and the offset gives an index into the bitset for a set bit. The series of VarInts ends with a 0.
Definition at line 484 of file serialize.h.
Constructor & Destructor Documentation
◆ CFixedVarIntsBitSet()
|
inline |
Definition at line 491 of file serialize.h.
Member Function Documentation
◆ Serialize()
template<typename Stream >
|
inline |
Definition at line 494 of file serialize.h.
References vec, and WriteVarInt().
◆ Unserialize()
template<typename Stream >
|
inline |
Definition at line 507 of file serialize.h.
Member Data Documentation
◆ size
|
protected |
Definition at line 488 of file serialize.h.
Referenced by Unserialize().
◆ vec
|
protected |
Definition at line 487 of file serialize.h.
Referenced by Serialize(), and Unserialize().
The documentation for this class was generated from the following file:
- src/serialize.h