256-bit opaque blob.
More...
#include <uint256.h>
|
| constexpr | uint256 ()=default |
| |
| consteval | uint256 (std::string_view hex_str) |
| |
| constexpr | uint256 (uint8_t v) |
| |
| constexpr | uint256 (Span< const unsigned char > vch) |
| |
| 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 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 |
| |
| void | SetHexDeprecated (std::string_view str) |
| | Unlike FromHex this accepts any invalid input, thus it is fragile and deprecated! More...
|
| |
| std::string | ToString () const |
| |
|
| static std::optional< uint256 > | FromHex (std::string_view str) |
| |
| static constexpr unsigned int | size () |
| |
256-bit opaque blob.
- Note
- This type is called uint256 for historical reasons only. It is an opaque blob of 256 bits and has no integer operations. Use arith_uint256 if those are required.
Definition at line 178 of file uint256.h.
◆ uint256() [1/4]
| constexpr uint256::uint256 |
( |
| ) |
|
|
default |
◆ uint256() [2/4]
| consteval uint256::uint256 |
( |
std::string_view |
hex_str | ) |
|
|
inlineexplicit |
◆ uint256() [3/4]
| constexpr uint256::uint256 |
( |
uint8_t |
v | ) |
|
|
inlineexplicit |
◆ uint256() [4/4]
| constexpr uint256::uint256 |
( |
Span< const unsigned char > |
vch | ) |
|
|
inlineexplicit |
◆ FromHex()
| static std::optional<uint256> uint256::FromHex |
( |
std::string_view |
str | ) |
|
|
inlinestatic |
◆ ONE
◆ ZERO
The documentation for this class was generated from the following files: