Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <chain.h>

+ Inheritance diagram for CDiskBlockPos:

Public Member Functions

template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
 CDiskBlockPos ()
 
 CDiskBlockPos (int nFileIn, unsigned int nPosIn)
 
void SetNull ()
 
bool IsNull () const
 
std::string ToString () const
 

Public Attributes

int nFile
 
unsigned int nPos
 
 ADD_SERIALIZE_METHODS
 

Friends

bool operator== (const CDiskBlockPos &a, const CDiskBlockPos &b)
 
bool operator!= (const CDiskBlockPos &a, const CDiskBlockPos &b)
 

Detailed Description

Definition at line 85 of file chain.h.

Constructor & Destructor Documentation

◆ CDiskBlockPos() [1/2]

CDiskBlockPos::CDiskBlockPos ( )
inline

Definition at line 98 of file chain.h.

References SetNull().

◆ CDiskBlockPos() [2/2]

CDiskBlockPos::CDiskBlockPos ( int  nFileIn,
unsigned int  nPosIn 
)
inline

Definition at line 102 of file chain.h.

References nFile, and nPos.

Member Function Documentation

◆ IsNull()

bool CDiskBlockPos::IsNull ( ) const
inline

◆ SerializationOp()

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

Definition at line 93 of file chain.h.

References nFile, nPos, READWRITE, and VARINT.

◆ SetNull()

void CDiskBlockPos::SetNull ( )
inline

Definition at line 115 of file chain.h.

References nFile, and nPos.

Referenced by CDiskBlockPos(), and CDiskTxPos::SetNull().

◆ ToString()

std::string CDiskBlockPos::ToString ( ) const
inline

Definition at line 118 of file chain.h.

References nFile, nPos, and strprintf.

Referenced by ReadBlockFromDisk().

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const CDiskBlockPos a,
const CDiskBlockPos b 
)
friend

Definition at line 111 of file chain.h.

◆ operator==

bool operator== ( const CDiskBlockPos a,
const CDiskBlockPos b 
)
friend

Definition at line 107 of file chain.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CDiskBlockPos::ADD_SERIALIZE_METHODS

Definition at line 90 of file chain.h.

◆ nFile

◆ nPos


The documentation for this struct was generated from the following file:
Released under the MIT license