Constructors
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...
| Name | Description |
|---|---|
| hex_str | A hex string that must fit the blob exactly. |
| v | The byte value placed in the first position of the blob. |
| vch | A span of exactly WIDTH bytes to copy into the blob. |