Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
uint160 Class Reference

160-bit opaque blob. More...

#include <uint256.h>

Inheritance diagram for uint160:
[legend]
Collaboration diagram for uint160:
[legend]

Public Member Functions

constexpr uint160 ()=default
constexpr uint160 (std::span< const unsigned char > vch)
Public Member Functions inherited from base_blob< 160 >
constexpr base_blob ()
constexpr bool IsNull () const
constexpr void SetNull ()
constexpr bool operator== (const base_blob &) const=default
constexpr std::strong_ordering operator<=> (const base_blob &other) const=default
 Lexicographic ordering.
constexpr const unsigned char * data () const
constexpr unsigned char * begin ()
constexpr unsigned char * end ()
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 Public Member Functions

static std::optional< uint160 > FromHex (std::string_view str)
Static Public Member Functions inherited from base_blob< 160 >
static constexpr unsigned int size ()

Additional Inherited Members

Protected Attributes inherited from base_blob< 160 >
std::array< uint8_t, WIDTH > m_data
Static Protected Attributes inherited from base_blob< 160 >
static constexpr int WIDTH

Detailed Description

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.

Constructor & Destructor Documentation

◆ uint160() [1/2]

uint160::uint160 ( )
constexprdefault
Here is the caller graph for this function:

◆ uint160() [2/2]

uint160::uint160 ( std::span< const unsigned char > vch)
inlineexplicitconstexpr

Definition at line 188 of file uint256.h.

Here is the call graph for this function:

Member Function Documentation

◆ FromHex()

std::optional< uint160 > uint160::FromHex ( std::string_view str)
inlinestatic

Definition at line 186 of file uint256.h.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: