[#uint256-2constructor-09] = xref:uint256.adoc[uint256]::uint256 :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<uint256.h>` Constructs a zero‐valued uint256. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:uint256/2constructor-05.adoc[uint256]() = default; ---- [.small]#xref:uint256/2constructor-05.adoc[_» more..._]# Constructs a uint256 at compile time from a hex string. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- consteval explicit xref:uint256/2constructor-07.adoc[uint256](std::string_view hex_str); ---- [.small]#xref:uint256/2constructor-07.adoc[_» more..._]# Constructs a uint256 from a single byte constant between 1 and 255. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit xref:uint256/2constructor-0f.adoc[uint256](uint8_t v); ---- [.small]#xref:uint256/2constructor-0f.adoc[_» more..._]# Constructs a uint256 by copying bytes from a span. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr explicit xref:uint256/2constructor-0d.adoc[uint256](std::span<unsigned char const> vch); ---- [.small]#xref:uint256/2constructor-0d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *hex_str* | A hex string that must fit the 256‐bit blob exactly. | *v* | The byte value placed in the first position of the blob. | *vch* | A span of exactly 32 bytes to copy into the blob. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#