Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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()

CFixedVarIntsBitSet::CFixedVarIntsBitSet ( std::vector< bool > &  vecIn,
size_t  sizeIn 
)
inline

Definition at line 491 of file serialize.h.

Member Function Documentation

◆ Serialize()

template<typename Stream >
void CFixedVarIntsBitSet::Serialize ( Stream &  s) const
inline

Definition at line 494 of file serialize.h.

References vec, and WriteVarInt().

◆ Unserialize()

template<typename Stream >
void CFixedVarIntsBitSet::Unserialize ( Stream &  s)
inline

Definition at line 507 of file serialize.h.

References size, and vec.

Member Data Documentation

◆ size

size_t CFixedVarIntsBitSet::size
protected

Definition at line 488 of file serialize.h.

Referenced by Unserialize().

◆ vec

std::vector<bool>& CFixedVarIntsBitSet::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:
Released under the MIT license