The fixed size array of 32 bytes for storing 256-bit EVM values.
More...
#include <evmc.hpp>
Inherits evmc_bytes32.
|
constexpr | bytes32 (evmc_bytes32 init={}) noexcept |
| Default and converting constructor. More...
|
|
constexpr | bytes32 (uint64_t v) noexcept |
| Converting constructor from unsigned integer value. More...
|
|
constexpr | operator bool () const noexcept |
| Explicit operator converting to bool.
|
|
The fixed size array of 32 bytes for storing 256-bit EVM values.
This type wraps C evmc_bytes32 to make sure objects of this type are always initialized.
Definition at line 62 of file evmc.hpp.
◆ bytes32() [1/2]
Default and converting constructor.
Initializes bytes to zeros if not other init
value provided.
Definition at line 67 of file evmc.hpp.
The fixed size array of 32 bytes.
◆ bytes32() [2/2]
constexpr evmc::bytes32::bytes32 |
( |
uint64_t |
v | ) |
|
|
inlineexplicitnoexcept |
Converting constructor from unsigned integer value.
This constructor assigns the v
value to the last 8 bytes [24:31] in big-endian order.
Definition at line 73 of file evmc.hpp.
98 static_cast<uint8_t
>(v >> 56),
99 static_cast<uint8_t>(v >> 48),
100 static_cast<uint8_t
>(v >> 40),
101 static_cast<uint8_t>(v >> 32),
102 static_cast<uint8_t
>(v >> 24),
103 static_cast<uint8_t>(v >> 16),
104 static_cast<uint8_t
>(v >> 8),
105 static_cast<uint8_t>(v >> 0)}}
The fixed size array of 32 bytes.
The documentation for this struct was generated from the following file: