Constructors
Synopses
Declared in <uint256.h>
Constructs a zero‐valued blob.
constexpr
base_blob();
Constructs a blob at compile time from a hex string.
consteval
explicit
base_blob(std::string_view hex_str);
Constructs a blob from a single byte constant between 1 and 255.
constexpr
explicit
base_blob(uint8_t v);
Constructs a blob by copying bytes from a span.
constexpr
explicit
base_blob(std::span<unsigned char const> vch);
Parameters
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. |
Created with MrDocs