Dash Core  0.12.2.1
P2P Digital Currency
base_blob< BITS > Class Template Reference

#include <uint256.h>

Public Member Functions

 base_blob ()
 
 base_blob (const std::vector< unsigned char > &vch)
 
bool IsNull () const
 
void SetNull ()
 
std::string GetHex () const
 
void SetHex (const char *psz)
 
void SetHex (const std::string &str)
 
std::string ToString () const
 
unsigned char * begin ()
 
unsigned char * end ()
 
const unsigned char * begin () const
 
const unsigned char * end () const
 
unsigned int size () const
 
unsigned int GetSerializeSize (int nType, int nVersion) const
 
template<typename Stream >
void Serialize (Stream &s, int nType, int nVersion) const
 
template<typename Stream >
void Unserialize (Stream &s, int nType, int nVersion)
 

Protected Types

enum  { WIDTH =BITS/8 }
 

Protected Attributes

uint8_t data [WIDTH]
 

Friends

bool operator== (const base_blob &a, const base_blob &b)
 
bool operator!= (const base_blob &a, const base_blob &b)
 
bool operator< (const base_blob &a, const base_blob &b)
 

Detailed Description

template<unsigned int BITS>
class base_blob< BITS >

Template base class for fixed-sized opaque blobs.

Definition at line 20 of file uint256.h.

Member Enumeration Documentation

◆ anonymous enum

template<unsigned int BITS>
anonymous enum
protected
Enumerator
WIDTH 

Definition at line 23 of file uint256.h.

Constructor & Destructor Documentation

◆ base_blob() [1/2]

template<unsigned int BITS>
base_blob< BITS >::base_blob ( )
inline

Definition at line 26 of file uint256.h.

◆ base_blob() [2/2]

template<unsigned int BITS>
base_blob< BITS >::base_blob ( const std::vector< unsigned char > &  vch)
explicit

Definition at line 14 of file uint256.cpp.

Member Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

template<unsigned int BITS>
const unsigned char* base_blob< BITS >::begin ( ) const
inline

Definition at line 65 of file uint256.h.

◆ end() [1/2]

template<unsigned int BITS>
unsigned char* base_blob< BITS >::end ( )
inline

◆ end() [2/2]

template<unsigned int BITS>
const unsigned char* base_blob< BITS >::end ( ) const
inline

Definition at line 70 of file uint256.h.

◆ GetHex()

◆ GetSerializeSize()

template<unsigned int BITS>
unsigned int base_blob< BITS >::GetSerializeSize ( int  nType,
int  nVersion 
) const
inline

Definition at line 80 of file uint256.h.

◆ IsNull()

◆ Serialize()

template<unsigned int BITS>
template<typename Stream >
void base_blob< BITS >::Serialize ( Stream &  s,
int  nType,
int  nVersion 
) const
inline

◆ SetHex() [1/2]

◆ SetHex() [2/2]

template<unsigned int BITS>
void base_blob< BITS >::SetHex ( const std::string &  str)

Definition at line 59 of file uint256.cpp.

◆ SetNull()

◆ size()

template<unsigned int BITS>
unsigned int base_blob< BITS >::size ( ) const
inline

Definition at line 75 of file uint256.h.

Referenced by BIP32Hash(), and CompareInputBIP69::operator()().

◆ ToString()

template<unsigned int BITS>
std::string base_blob< BITS >::ToString ( ) const

Definition at line 65 of file uint256.cpp.

Referenced by AcceptToMemoryPool(), AcceptToMemoryPoolWorker(), CGovernanceManager::AddGovernanceObject(), AddOrphanTx(), CWallet::AddToWallet(), CWallet::AddToWalletIfInvolvingMe(), CInstantSend::CheckAndRemove(), CMasternodePing::CheckAndUpdate(), CheckBlock(), CheckForkWarningConditions(), CGovernanceManager::CheckPostponedObjects(), CMasternodePing::CheckSignature(), CTxLockVote::CheckSignature(), CDarksendBroadcastTx::CheckSignature(), CMasternodeBroadcast::CheckSignature(), CGovernanceTriggerManager::CleanAndRemove(), CPrivateSendServer::CommitFinalTransaction(), ConnectBlock(), ConnectTip(), CMasternodeBroadcast::Create(), CInstantSend::CreateEmptyTxLockCandidate(), CreateNewBlock(), CInstantSend::CreateTxLockCandidate(), TransactionTableModel::data(), DisconnectTip(), dumpwallet(), TransactionRecord::formatSubTxId(), CWallet::GetRealOutpointPrivateSendRounds(), CGovernanceObject::GetSignatureMessage(), gobject(), InvalidChainFound(), CGovernanceObject::IsCollateralValid(), CGovernanceVote::IsValid(), CTxLockRequest::IsValid(), CTxLockVote::IsValid(), CGovernanceObject::IsValidLocally(), LoadBlockIndexDB(), LoadExternalBlockFile(), CInstantSend::LockTransactionInputs(), CActiveMasternode::ManageStateRemote(), masternodebroadcast(), CGovernanceManager::MasternodeRateCheck(), mempoolToJSON(), CPrivateSendServer::ProcessMessage(), CMasternodePayments::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), CSporkManager::ProcessSpork(), CBlockPolicyEstimator::processTransaction(), CInstantSend::ProcessTxLockRequest(), CInstantSend::ProcessTxLockVote(), CMasternodeMan::ProcessVerifyBroadcast(), CMasternodeMan::ProcessVerifyReply(), CGovernanceObject::ProcessVote(), CGovernanceManager::ProcessVote(), CWalletTx::RelayWalletTransaction(), CBlockPolicyEstimator::removeTx(), CGovernanceManager::RequestGovernanceObject(), resendwallettransactions(), CInstantSend::ResolveConflicts(), CPrivateSendClient::SendDenominate(), SendMessages(), CMasternodeMan::SendVerifyReply(), CMasternodePing::Sign(), CGovernanceVote::Sign(), CTxLockVote::Sign(), CGovernanceObject::Sign(), CDarksendBroadcastTx::Sign(), CMasternodeBroadcast::Sign(), CMasternodePing::SimpleCheck(), CGovernanceManager::Sync(), CInstantSend::SyncTransaction(), CPrivateSend::SyncTransaction(), COutPoint::ToString(), CBlock::ToString(), CBlockIndex::ToString(), CInv::ToString(), CDiskBlockIndex::ToString(), COutPoint::ToStringShort(), CInstantSend::TryToFinalizeLockCandidate(), TxInErrorToJSON(), CGovernanceManager::UpdateCachesAndClean(), CGovernanceManager::UpdateCurrentWatchdog(), CInstantSend::UpdateLockedTransaction(), UpdateTip(), TransactionTablePriv::updateWallet(), CVerifyDB::VerifyDB(), CHashSigner::VerifyHash(), and CInstantSend::Vote().

◆ Unserialize()

template<unsigned int BITS>
template<typename Stream >
void base_blob< BITS >::Unserialize ( Stream &  s,
int  nType,
int  nVersion 
)
inline

Friends And Related Function Documentation

◆ operator!=

template<unsigned int BITS>
bool operator!= ( const base_blob< BITS > &  a,
const base_blob< BITS > &  b 
)
friend

Definition at line 47 of file uint256.h.

◆ operator<

template<unsigned int BITS>
bool operator< ( const base_blob< BITS > &  a,
const base_blob< BITS > &  b 
)
friend

Definition at line 48 of file uint256.h.

◆ operator==

template<unsigned int BITS>
bool operator== ( const base_blob< BITS > &  a,
const base_blob< BITS > &  b 
)
friend

Definition at line 46 of file uint256.h.

Member Data Documentation

◆ data


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