|
constexpr | base_blob () |
|
constexpr | base_blob (uint8_t v) |
|
constexpr | base_blob (Span< const unsigned char > vch) |
|
consteval | base_blob (std::string_view hex_str) |
|
constexpr bool | IsNull () const |
|
constexpr void | SetNull () |
|
constexpr int | Compare (const base_blob &other) const |
| Lexicographic ordering. More...
|
|
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) |
|
|
The reverse-byte hex representation is a convenient way to view the blob as a number, because it is consistent with the way the base_uint class converts blobs to numbers.
- Note
- base_uint treats the blob as an array of bytes with the numerically least significant byte first and the most significant byte last. Because numbers are typically written with the most significant digit first and the least significant digit last, the reverse hex display of the blob corresponds to the same numeric value that base_uint interprets from the blob.
|
std::string | GetHex () const |
|
void | SetHexDeprecated (std::string_view str) |
| Unlike FromHex this accepts any invalid input, thus it is fragile and deprecated! More...
|
|
std::string | ToString () const |
|
template<unsigned int BITS>
class base_blob< BITS >
Template base class for fixed-sized opaque blobs.
Definition at line 25 of file uint256.h.