Bitcoin ABC 0.30.7
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< uint8_t > &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 uint8_t * | data () const |
uint8_t * | data () |
uint8_t * | begin () |
uint8_t * | end () |
const uint8_t * | begin () const |
const uint8_t * | end () const |
unsigned int | size () const |
uint64_t | GetUint64 (int pos) const |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
void | Unserialize (Stream &s) |
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) |
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.
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
explicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string base_blob< BITS >::GetHex |
Definition at line 16 of file uint256.cpp.
|
inline |
|
inline |
|
inline |
void base_blob< BITS >::SetHex | ( | const char * | psz | ) |
Definition at line 24 of file uint256.cpp.
void base_blob< BITS >::SetHex | ( | const std::string & | str | ) |
Definition at line 55 of file uint256.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexprprotected |