veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::btc::CCompactSize Class Reference

Detailed Description

Definition at line 592 of file serialize.hpp.

+ Collaboration diagram for altintegration::btc::CCompactSize:

Public Member Functions

 CCompactSize (uint64_t &nIn)
 
template<typename Stream >
void Serialize (Stream &s) const
 
template<typename Stream >
void Unserialize (Stream &s)
 

Protected Attributes

uint64_t & n
 

Constructor & Destructor Documentation

◆ CCompactSize()

altintegration::btc::CCompactSize::CCompactSize ( uint64_t &  nIn)
inlineexplicit

Definition at line 597 of file serialize.hpp.

597: n(nIn) {}

Member Function Documentation

◆ Serialize()

template<typename Stream >
void altintegration::btc::CCompactSize::Serialize ( Stream &  s) const
inline

Definition at line 600 of file serialize.hpp.

600 {
601 WriteCompactSize<Stream>(s, n);
602 }

◆ Unserialize()

template<typename Stream >
void altintegration::btc::CCompactSize::Unserialize ( Stream &  s)
inline

Definition at line 605 of file serialize.hpp.

605 {
606 n = ReadCompactSize<Stream>(s);
607 }

Member Data Documentation

◆ n

uint64_t& altintegration::btc::CCompactSize::n
protected

Definition at line 594 of file serialize.hpp.


The documentation for this class was generated from the following file: