EVMC
evmc::StorageValue Struct Reference

Extended value (with original value and access flag) for account storage. More...

#include <mocked_host.hpp>

Public Member Functions

 StorageValue () noexcept=default
 Default constructor.
 
 StorageValue (const bytes32 &_value, evmc_access_status _access_status=EVMC_ACCESS_COLD) noexcept
 Constructor sets the current and original to the same value. Optional access status.
 
 StorageValue (const bytes32 &_value, const bytes32 &_original, evmc_access_status _access_status=EVMC_ACCESS_COLD) noexcept
 Constructor with original value and optional access status.
 

Public Attributes

bytes32 current
 The current storage value.
 
bytes32 original
 The original storage value.
 
evmc_access_status access_status = EVMC_ACCESS_COLD
 Is the storage key cold or warm.
 

Detailed Description

Extended value (with original value and access flag) for account storage.

Definition at line 16 of file mocked_host.hpp.

Constructor & Destructor Documentation

◆ StorageValue() [1/2]

evmc::StorageValue::StorageValue ( const bytes32 _value,
evmc_access_status  _access_status = EVMC_ACCESS_COLD 
)
inlinenoexcept

Constructor sets the current and original to the same value. Optional access status.

Definition at line 31 of file mocked_host.hpp.

33 : current{_value}, original{_value}, access_status{_access_status}
34 {}
bytes32 original
The original storage value.
Definition: mocked_host.hpp:22
evmc_access_status access_status
Is the storage key cold or warm.
Definition: mocked_host.hpp:25
bytes32 current
The current storage value.
Definition: mocked_host.hpp:19

◆ StorageValue() [2/2]

evmc::StorageValue::StorageValue ( const bytes32 _value,
const bytes32 _original,
evmc_access_status  _access_status = EVMC_ACCESS_COLD 
)
inlinenoexcept

Constructor with original value and optional access status.

Definition at line 37 of file mocked_host.hpp.

40 : current{_value}, original{_original}, access_status{_access_status}
41 {}

Member Data Documentation

◆ access_status

evmc_access_status evmc::StorageValue::access_status = EVMC_ACCESS_COLD

Is the storage key cold or warm.

Definition at line 25 of file mocked_host.hpp.

◆ current

bytes32 evmc::StorageValue::current

The current storage value.

Definition at line 19 of file mocked_host.hpp.

◆ original

bytes32 evmc::StorageValue::original

The original storage value.

Definition at line 22 of file mocked_host.hpp.


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