EVMC
evmc::bytes32 Struct Reference

The fixed size array of 32 bytes for storing 256-bit EVM values. More...

#include <evmc.hpp>

Inherits evmc_bytes32.

Public Member Functions

constexpr bytes32 (evmc_bytes32 init={}) noexcept
 Default and converting constructor. More...
 
constexpr operator bool () const noexcept
 Explicit operator converting to bool.
 

Additional Inherited Members

- Public Attributes inherited from evmc_bytes32
uint8_t bytes [32]
 The 32 bytes. More...
 

Detailed Description

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 35 of file evmc.hpp.

Constructor & Destructor Documentation

◆ bytes32()

constexpr evmc::bytes32::bytes32 ( evmc_bytes32  init = {})
inlinenoexcept

Default and converting constructor.

Initializes bytes to zeros if not other init value provided.

Definition at line 40 of file evmc.hpp.

40 {}) noexcept : evmc_bytes32{init} {}
The fixed size array of 32 bytes.
Definition: evmc.h:56

The documentation for this struct was generated from the following file: