uint256::uint256

Constructors

Synopses

Declared in <uint256.h>

Constructs a zero-valued uint256.

constexpr
uint256() = default;
» more...

Constructs a uint256 at compile time from a hex string.

consteval
explicit
uint256(std::string_view hex_str);
» more...

Constructs a uint256 from a single byte constant between 1 and 255.

constexpr
explicit
uint256(uint8_t v);
» more...

Constructs a uint256 by copying bytes from a span.

constexpr
explicit
uint256(std::span<unsigned char const> vch);
» more...

Parameters

NameDescription
hex_strA hex string that must fit the 256-bit blob exactly.
vThe byte value placed in the first position of the blob.
vchA span of exactly 32 bytes to copy into the blob.