![]() |
Bitcoin ABC 0.33.12
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 uint8_t > 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 uint8_t * | data () const |
| constexpr uint8_t * | data () |
| constexpr uint8_t * | begin () |
| constexpr uint8_t * | end () |
| constexpr const uint8_t * | begin () const |
| constexpr const uint8_t * | 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 bool | operator== (const base_blob &a, const base_blob &b) |
| constexpr bool | operator!= (const base_blob &a, const base_blob &b) |
| constexpr bool | operator< (const base_blob &a, const base_blob &b) |
| constexpr bool | operator<= (const base_blob &a, const base_blob &b) |
| constexpr bool | operator> (const base_blob &a, const base_blob &b) |
| constexpr bool | operator>= (const base_blob &a, const base_blob &b) |
Template base class for fixed-sized opaque blobs.
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
| std::string base_blob< BITS >::GetHex |
Definition at line 10 of file uint256.cpp.
|
inlineconstexpr |
|
inlineconstexpr |
|
inline |
| void base_blob< BITS >::SetHex | ( | const char * | psz | ) |
Definition at line 18 of file uint256.cpp.
| void base_blob< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 49 of file uint256.cpp.
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inline |
|
inline |
|
staticconstexprprotected |