Private
Readonly
_mapReadonly
maxDefines the maximun size allowed to invalidate.
the number of values stored in the Memory
.
Returns an iterable of location, value pairs for every entry in the Memory
.
Returns a specified value from the Memory
object.
If the value stored at the provided location
is an object
,
then you will get a reference to that object
and any change made to that object
will effectively modify it inside the Memory
.
Returns the value stored at the specified location
. If no value is stored at the specified location
, undefined
is returned.
Tries to invalidate the memory range indicated by [offset, offset + size]
.
It can do so when both offset
and size
are reducible to Val
,
and size
is no greater than maxInvalidateSizeAllowed
.
This last restriction is to avoid iterating over a large range.
Otherwise, when invalidateAll
is set clears the whole memory.
Returns an iterable of keys in the Memory
.
Generated using TypeDoc v0.25.2
EVM memory is not persistent and is destroyed at the end of the call context. At the start of a call context, memory is initialized to
0
. Reading and Writing from memory is usually done withMLOAD
andMSTORE
instructions respectively, but can also be accessed by other instructions likeCREATE
orEXTCODECOPY
.[1][1] https://www.evm.codes/about#memory