base_blob::base_blob

Constructors

Synopses

Declared in <uint256.h>

Constructs a zero-valued blob.

constexpr
base_blob();
» more...

Constructs a blob at compile time from a hex string.

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

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

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

Constructs a blob by copying bytes from a span.

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

Parameters

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