Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

inv message data More...

#include <protocol.h>

+ Collaboration diagram for CInv:

Public Member Functions

 CInv ()
 
 CInv (int typeIn, const uint256 &hashIn)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
bool IsKnownType () const
 
std::string GetCommand () const
 
std::string ToString () const
 

Public Attributes

 ADD_SERIALIZE_METHODS
 
int type
 
uint256 hash
 

Private Member Functions

const char * GetCommandInternal () const
 

Friends

bool operator< (const CInv &a, const CInv &b)
 

Detailed Description

inv message data

Definition at line 429 of file protocol.h.

Constructor & Destructor Documentation

◆ CInv() [1/2]

CInv::CInv ( )

Definition at line 230 of file protocol.cpp.

References hash, base_blob< BITS >::SetNull(), and type.

◆ CInv() [2/2]

CInv::CInv ( int  typeIn,
const uint256 hashIn 
)

Definition at line 236 of file protocol.cpp.

Member Function Documentation

◆ GetCommand()

std::string CInv::GetCommand ( ) const

Definition at line 274 of file protocol.cpp.

References GetCommandInternal(), strprintf, and type.

◆ GetCommandInternal()

◆ IsKnownType()

bool CInv::IsKnownType ( ) const

Definition at line 243 of file protocol.cpp.

References GetCommandInternal().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CInv::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 438 of file protocol.h.

References hash, READWRITE, and type.

◆ ToString()

Friends And Related Function Documentation

◆ operator<

bool operator< ( const CInv a,
const CInv b 
)
friend

Definition at line 238 of file protocol.cpp.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CInv::ADD_SERIALIZE_METHODS

Definition at line 435 of file protocol.h.

◆ hash

◆ type


The documentation for this class was generated from the following files:
Released under the MIT license