![]() |
Bitcoin Core 22.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) |
| base_blob (const std::vector< unsigned char > &vch) | |
| bool | IsNull () const |
| void | SetNull () |
| 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 |
| const unsigned char * | data () const |
| unsigned char * | data () |
| unsigned char * | begin () |
| unsigned char * | end () |
| const unsigned char * | begin () const |
| const unsigned char * | end () const |
| 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 | |
| uint8_t | m_data [WIDTH] |
Static Protected Attributes | |
| static constexpr int | WIDTH = BITS / 8 |
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) |
Template base class for fixed-sized opaque blobs.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| std::string base_blob< BITS >::GetHex |
Definition at line 20 of file uint256.cpp.
|
inline |
|
inline |
|
inline |
| void base_blob< BITS >::SetHex | ( | const char * | psz | ) |
Definition at line 30 of file uint256.cpp.
| void base_blob< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 58 of file uint256.cpp.
|
inline |
|
inlinestaticconstexpr |
| std::string base_blob< BITS >::ToString |
Definition at line 64 of file uint256.cpp.
|
inline |
|
staticconstexprprotected |