Bitcoin Core
27.99.0
P2P Digital Currency
|
Template base class for fixed-sized opaque blobs. More...
#include <uint256.h>
Public Member Functions | |
constexpr | base_blob () |
constexpr | base_blob (uint8_t v) |
constexpr | base_blob (Span< const unsigned char > vch) |
constexpr bool | IsNull () const |
constexpr void | SetNull () |
constexpr int | Compare (const base_blob &other) const |
std::string | GetHex () const |
void | SetHex (const char *psz) |
void | SetHex (const std::string &str) |
std::string | ToString () const |
constexpr const unsigned char * | data () const |
constexpr unsigned char * | data () |
constexpr unsigned char * | begin () |
constexpr unsigned char * | end () |
constexpr const unsigned char * | begin () const |
constexpr const unsigned char * | end () const |
constexpr uint64_t | GetUint64 (int pos) const |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
void | Unserialize (Stream &s) |
Static Public Member Functions | |
static constexpr unsigned int | size () |
Protected Attributes | |
std::array< uint8_t, WIDTH > | m_data |
Static Protected Attributes | |
static constexpr int | WIDTH = BITS / 8 |
Friends | |
constexpr friend bool | operator== (const base_blob &a, const base_blob &b) |
constexpr friend bool | operator!= (const base_blob &a, const base_blob &b) |
constexpr friend bool | operator< (const base_blob &a, const base_blob &b) |
Template base class for fixed-sized opaque blobs.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
std::string base_blob< BITS >::GetHex |
Definition at line 11 of file uint256.cpp.
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
void base_blob< BITS >::SetHex | ( | const char * | psz | ) |
Definition at line 21 of file uint256.cpp.
void base_blob< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 49 of file uint256.cpp.
|
inlineconstexpr |
|
inlinestaticconstexpr |
std::string base_blob< BITS >::ToString |
Definition at line 55 of file uint256.cpp.
|
inline |
|
staticconstexprprotected |