Template base class for fixed-sized opaque blobs.
More...
#include <uint256.h>
|
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 constexpr unsigned int | size () |
|
|
static constexpr int | WIDTH = BITS / 8 |
|
template<unsigned int BITS>
class base_blob< BITS >
Template base class for fixed-sized opaque blobs.
Definition at line 21 of file uint256.h.
◆ base_blob() [1/3]
template<unsigned int BITS>
◆ base_blob() [2/3]
template<unsigned int BITS>
◆ base_blob() [3/3]
template<unsigned int BITS>
◆ begin() [1/2]
template<unsigned int BITS>
constexpr unsigned char* base_blob< BITS >::begin |
( |
| ) |
|
|
inlineconstexpr |
◆ begin() [2/2]
template<unsigned int BITS>
constexpr const unsigned char* base_blob< BITS >::begin |
( |
| ) |
const |
|
inlineconstexpr |
◆ Compare()
template<unsigned int BITS>
◆ data() [1/2]
template<unsigned int BITS>
constexpr unsigned char* base_blob< BITS >::data |
( |
| ) |
|
|
inlineconstexpr |
◆ data() [2/2]
template<unsigned int BITS>
constexpr const unsigned char* base_blob< BITS >::data |
( |
| ) |
const |
|
inlineconstexpr |
◆ end() [1/2]
template<unsigned int BITS>
constexpr unsigned char* base_blob< BITS >::end |
( |
| ) |
|
|
inlineconstexpr |
◆ end() [2/2]
template<unsigned int BITS>
constexpr const unsigned char* base_blob< BITS >::end |
( |
| ) |
const |
|
inlineconstexpr |
◆ GetHex()
template<unsigned int BITS>
◆ GetUint64()
template<unsigned int BITS>
constexpr uint64_t base_blob< BITS >::GetUint64 |
( |
int |
pos | ) |
const |
|
inlineconstexpr |
◆ IsNull()
template<unsigned int BITS>
constexpr bool base_blob< BITS >::IsNull |
( |
| ) |
const |
|
inlineconstexpr |
◆ Serialize()
template<unsigned int BITS>
template<typename Stream >
void base_blob< BITS >::Serialize |
( |
Stream & |
s | ) |
const |
|
inline |
◆ SetHex() [1/2]
template<unsigned int BITS>
void base_blob< BITS >::SetHex |
( |
const char * |
psz | ) |
|
◆ SetHex() [2/2]
template<unsigned int BITS>
void base_blob< BITS >::SetHex |
( |
const std::string & |
str | ) |
|
◆ SetNull()
template<unsigned int BITS>
constexpr void base_blob< BITS >::SetNull |
( |
| ) |
|
|
inlineconstexpr |
◆ size()
template<unsigned int BITS>
static constexpr unsigned int base_blob< BITS >::size |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ ToString()
template<unsigned int BITS>
◆ Unserialize()
template<unsigned int BITS>
template<typename Stream >
void base_blob< BITS >::Unserialize |
( |
Stream & |
s | ) |
|
|
inline |
◆ operator!=
template<unsigned int BITS>
constexpr friend bool operator!= |
( |
const base_blob< BITS > & |
a, |
|
|
const base_blob< BITS > & |
b |
|
) |
| |
|
friend |
◆ operator<
template<unsigned int BITS>
constexpr friend bool operator< |
( |
const base_blob< BITS > & |
a, |
|
|
const base_blob< BITS > & |
b |
|
) |
| |
|
friend |
◆ operator==
template<unsigned int BITS>
constexpr friend bool operator== |
( |
const base_blob< BITS > & |
a, |
|
|
const base_blob< BITS > & |
b |
|
) |
| |
|
friend |
◆ m_data
template<unsigned int BITS>
◆ WIDTH
template<unsigned int BITS>
constexpr int base_blob< BITS >::WIDTH = BITS / 8 |
|
staticconstexprprotected |
The documentation for this class was generated from the following files: