160-bit opaque blob.
More...
#include <uint256.h>
|
| constexpr | uint160 ()=default |
| |
| constexpr | uint160 (std::span< const unsigned char > vch) |
| |
| constexpr | base_blob () |
| |
| constexpr | base_blob (uint8_t v) |
| |
| constexpr | base_blob (std::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 const unsigned char * | begin () const |
| |
| constexpr unsigned char * | end () |
| |
| constexpr const unsigned char * | end () const |
| |
| constexpr uint64_t | GetUint64 (int pos) const |
| |
| void | Serialize (Stream &s) const |
| |
| void | Unserialize (Stream &s) |
| |
| std::string | GetHex () const |
| |
| std::string | ToString () const |
| |
|
| static std::optional< uint160 > | FromHex (std::string_view str) |
| |
| static constexpr unsigned int | size () |
| |
160-bit opaque blob.
- Note
- This type is called uint160 for historical reasons only. It is an opaque blob of 160 bits and has no integer operations.
Definition at line 184 of file uint256.h.
◆ uint160() [1/2]
| constexpr uint160::uint160 |
( |
| ) |
|
|
constexprdefault |
◆ uint160() [2/2]
| constexpr uint160::uint160 |
( |
std::span< const unsigned char > |
vch | ) |
|
|
inlineexplicitconstexpr |
◆ FromHex()
| static std::optional< uint160 > uint160::FromHex |
( |
std::string_view |
str | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: